Documentation ¶
Index ¶
- func OrderDS(dataSources []plan.DataSource, order []int) (out []plan.DataSource)
- func RunTest(definition, operation, operationName string, expectedPlan plan.Plan, ...) func(t *testing.T)
- func RunWithPermutations(t *testing.T, definition, operation, operationName string, ...)
- func RunWithPermutationsVariants(t *testing.T, definition, operation, operationName string, ...)
- func ShuffleDS(dataSources []plan.DataSource) []plan.DataSource
- func WithMultiFetchPostProcessor() func(*testOptions)
- func WithPostProcessors(postProcessors ...postprocess.PostProcessor) func(*testOptions)
- func WithSkipReason(reason string) func(*testOptions)
- type Permutation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OrderDS ¶
func OrderDS(dataSources []plan.DataSource, order []int) (out []plan.DataSource)
func RunWithPermutations ¶
func ShuffleDS ¶
func ShuffleDS(dataSources []plan.DataSource) []plan.DataSource
ShuffleDS randomizes the order of the data sources to ensure that the order doesn't matter
func WithMultiFetchPostProcessor ¶
func WithMultiFetchPostProcessor() func(*testOptions)
func WithPostProcessors ¶
func WithPostProcessors(postProcessors ...postprocess.PostProcessor) func(*testOptions)
func WithSkipReason ¶
func WithSkipReason(reason string) func(*testOptions)
Types ¶
type Permutation ¶
type Permutation struct { Order []int DataSources []plan.DataSource }
func DataSourcePermutations ¶
func DataSourcePermutations(dataSources []plan.DataSource) []*Permutation
Click to show internal directories.
Click to hide internal directories.