style: gofmt 7 test files
This commit is contained in:
@@ -5,7 +5,10 @@ import (
|
|||||||
"testing"
|
"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) Meta() Meta { return Meta{ID: f.id, Name: f.id, Deps: f.deps} }
|
||||||
func (f fakeModule) Detect(context.Context) (State, error) { return nil, nil }
|
func (f fakeModule) Detect(context.Context) (State, error) { return nil, nil }
|
||||||
|
|||||||
@@ -35,7 +35,9 @@ func (p pendingModule) Verify(context.Context) error
|
|||||||
type detectFailModule struct{ id string }
|
type detectFailModule struct{ id string }
|
||||||
|
|
||||||
func (d detectFailModule) Meta() module.Meta { return module.Meta{ID: d.id} }
|
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) {
|
func (d detectFailModule) Plan(context.Context, module.State) (module.Plan, error) {
|
||||||
return module.Plan{}, nil
|
return module.Plan{}, nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,4 +71,3 @@ func TestSelectedIDsOnlyReturnsChecked(t *testing.T) {
|
|||||||
t.Fatalf("got %v", got)
|
t.Fatalf("got %v", got)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user