jx/internal/resource/mock_foo_resource_test.go
Matthew Rich 86264c1202
Some checks failed
Lint / golangci-lint (push) Failing after 9m48s
Declarative Tests / test (push) Successful in 1m23s
fix tests
2024-04-21 11:06:53 -07:00

19 lines
514 B
Go

// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
package resource
import (
"context"
_ "gopkg.in/yaml.v3"
)
func NewFooResource() *MockResource {
return &MockResource {
InjectType: func() string { return "foo" },
InjectResolveId: func(ctx context.Context) string { return "bar" },
InjectRead: func(ctx context.Context) ([]byte, error) { return nil,nil },
InjectLoadDecl: func(string) error { return nil },
InjectApply: func() error { return nil },
}
}