testing

package
v0.170.1-fips1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(ctx context.Context) error

Check will check that all testing expectations have been met. This is a no-op if testing dependencies are not present.

func ExpectPlannerRule

func ExpectPlannerRule(ctx context.Context, name string, n int) error

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

func Inject(ctx context.Context) context.Context

Inject will inject the testing dependencies into the context.

func MarkInvokedPlannerRule

func MarkInvokedPlannerRule(ctx context.Context, name string)

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

Jump to

Keyboard shortcuts

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