style: gofmt 7 test files
This commit is contained in:
@@ -5,13 +5,16 @@ 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 }
|
||||
func (f fakeModule) Plan(context.Context, State) (Plan, error) { return Plan{}, nil }
|
||||
func (f fakeModule) Apply(context.Context, Plan, Reporter) error { return nil }
|
||||
func (f fakeModule) Verify(context.Context) error { return nil }
|
||||
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) Plan(context.Context, State) (Plan, error) { return Plan{}, nil }
|
||||
func (f fakeModule) Apply(context.Context, Plan, Reporter) error { return nil }
|
||||
func (f fakeModule) Verify(context.Context) error { return nil }
|
||||
|
||||
func TestRegistry(t *testing.T) {
|
||||
t.Run("register then get", func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user