datasourcetesting

package
v2.0.0-rc.97 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OrderDS

func OrderDS(dataSources []plan.DataSource, order []int) (out []plan.DataSource)

func RunTest

func RunTest(definition, operation, operationName string, expectedPlan plan.Plan, config plan.Configuration, options ...func(*testOptions)) func(t *testing.T)

func RunTestWithVariables

func RunTestWithVariables(definition, operation, operationName, variables string, expectedPlan plan.Plan, config plan.Configuration, options ...func(*testOptions)) func(t *testing.T)

func RunWithPermutations

func RunWithPermutations(t *testing.T, definition, operation, operationName string, expectedPlan plan.Plan, config plan.Configuration, options ...func(*testOptions))

func RunWithPermutationsVariants

func RunWithPermutationsVariants(t *testing.T, definition, operation, operationName string, expectedPlans []plan.Plan, config plan.Configuration, options ...func(*testOptions))

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 WithDefaultCustomPostProcessor

func WithDefaultCustomPostProcessor(options ...postprocess.ProcessorOption) func(*testOptions)

func WithDefaultPostProcessor

func WithDefaultPostProcessor() func(*testOptions)

func WithFieldInfo

func WithFieldInfo() func(*testOptions)

func WithPostProcessors

func WithPostProcessors(postProcessors ...*postprocess.Processor) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL