style: gofmt 7 test files

This commit is contained in:
MDietermann
2026-04-14 21:30:50 +02:00
parent 137a9b62a5
commit c579375c83
7 changed files with 30 additions and 26 deletions

View File

@@ -5,7 +5,10 @@ import (
"testing"
)
type fakeModule struct{ id string; deps []string }
type fakeModule struct {
id string
deps []string
}
func (f fakeModule) Meta() Meta { return Meta{ID: f.id, Name: f.id, Deps: f.deps} }
func (f fakeModule) Detect(context.Context) (State, error) { return nil, nil }

View File

@@ -35,7 +35,9 @@ func (p pendingModule) Verify(context.Context) error
type detectFailModule struct{ id string }
func (d detectFailModule) Meta() module.Meta { return module.Meta{ID: d.id} }
func (d detectFailModule) Detect(context.Context) (module.State, error) { return nil, errors.New("boom") }
func (d detectFailModule) Detect(context.Context) (module.State, error) {
return nil, errors.New("boom")
}
func (d detectFailModule) Plan(context.Context, module.State) (module.Plan, error) {
return module.Plan{}, nil
}

View File

@@ -71,4 +71,3 @@ func TestSelectedIDsOnlyReturnsChecked(t *testing.T) {
t.Fatalf("got %v", got)
}
}