chore: replace interface{} with any

This commit is contained in:
Vincent Bernat
2025-07-29 07:37:42 +02:00
parent 10dfefebb4
commit 18beb310ee
61 changed files with 315 additions and 315 deletions

View File

@@ -55,7 +55,7 @@ func (c ComponentStartError) Start() error {
func TestStartStopError(t *testing.T) {
r := reporter.NewMock(t)
daemonComponent := daemon.NewMock(t)
otherComponents := []interface{}{
otherComponents := []any{
&ComponentStartStop{},
&ComponentStop{},
&ComponentStart{},
@@ -67,7 +67,7 @@ func TestStartStopError(t *testing.T) {
t.Error("StartStopComponents() did not trigger an error")
}
expected := []interface{}{
expected := []any{
&ComponentStartStop{
Startable: Startable{Started: true},
Stopable: Stopable{Stopped: true},
@@ -90,7 +90,7 @@ func TestStartStopError(t *testing.T) {
func TestStartStop(t *testing.T) {
r := reporter.NewMock(t)
daemonComponent := daemon.NewMock(t)
otherComponents := []interface{}{
otherComponents := []any{
&ComponentStartStop{},
&ComponentStop{},
&ComponentStart{},
@@ -104,7 +104,7 @@ func TestStartStop(t *testing.T) {
t.Errorf("StartStopComponents() error:\n%+v", err)
}
expected := []interface{}{
expected := []any{
&ComponentStartStop{
Startable: Startable{Started: true},
Stopable: Stopable{Stopped: true},