Documentation ¶
Index ¶
- func CompareWithFixture(t *testing.T, golden, output string)
- func CompareWithFixtureDir(t *testing.T, golden, output string)
- func CompareWithSerializedFixture(t *testing.T, data interface{})
- func NewFakeManager(ctx context.Context, objects []runtime.Object, indexSetups ...IndexSetupFunc) (*fakeManager, error)
- type IndexSetupFunc
- type IndexableManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareWithFixture ¶
CompareWithFixture will compare output files with a test fixture and allows to automatically update them by setting the UPDATE env var. The output and golden paths are relative to the test's directory.
func CompareWithFixtureDir ¶
CompareWithFixtureDir will compare all files in a directory with a corresponding test fixture directory.
func CompareWithSerializedFixture ¶
CompareWithSerializedFixture compares an object that can be marshalled with a golden file containing the serialized version of the data.
func NewFakeManager ¶
Types ¶
type IndexSetupFunc ¶
type IndexSetupFunc func(ctx context.Context, indexer ctrlruntimeclient.FieldIndexer) error
type IndexableManager ¶
type IndexableManager interface { GetClient() ctrlruntimeclient.Client GetFieldIndexer() ctrlruntimeclient.FieldIndexer }
Click to show internal directories.
Click to hide internal directories.