package testing
import "github.com/influxdata/flux/dependencies/testing"
Index ¶
- func Check(ctx context.Context) error
- func ExpectPlannerRule(ctx context.Context, name string, n int) error
- func Inject(ctx context.Context) context.Context
- func MarkInvokedPlannerRule(ctx context.Context, name string)
- type FrameworkConfig
Functions ¶
func Check ¶
Check will check that all testing expectations have been met. This is a no-op if testing dependencies are not present.
func ExpectPlannerRule ¶
ExpectPlannerRule will mark that a planner rule is expected to be executed n number of times.
This returns an error if testing dependencies have not been configured.
func Inject ¶
Inject will inject the testing dependencies into the context.
func MarkInvokedPlannerRule ¶
MarkInvokedPlannerRule will mark that a planner rule was invoked and record that information in the testing dependencies.
This method is a no-op if testing dependencies are not present.
Types ¶
type FrameworkConfig ¶
type FrameworkConfig struct{}
FrameworkConfig is the testing framework configuration. This can be used to inject the testing framework as a dependency.
func (FrameworkConfig) Inject ¶
func (f FrameworkConfig) Inject(ctx context.Context) context.Context
Source Files ¶
- Version
- v0.196.1 (latest)
- Published
- Feb 19, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 1 day ago –
Tools for package owners.