jx/tests/mocks/resource.go
2024-03-20 09:15:27 -07:00

15 lines
300 B
Go

package mocks
type MockResource struct {
InjectLoadDecl func(string) error
InjectApply func() error
}
func (m *MockResource) LoadDecl(yamlResourceDeclaration string) error {
return m.InjectLoadDecl(yamlResourceDeclaration)
}
func (m *MockResource) Apply() error {
return m.InjectApply()
}