testutil

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureError

func EnsureError(t *testing.T, err, expect error)

func Int64SlicesEqual

func Int64SlicesEqual(a []int64, b []int64) bool

func NewScribe

func NewScribe(initializer scribe.InitializerFunc) *scribe.Scribe

func NewScribeMulti

func NewScribeMulti(initializer scribe.InitializerFunc) *scribe.Scribe

func NewTestStep

func NewTestStep(b chan bool) pipeline.Step

NewTestStep creates a new TestStep that emits data into the channel 'b' when the action is ran

func ReadersEqual

func ReadersEqual(t *testing.T, value io.Reader, expected io.Reader)

func RunPipeline

func RunPipeline(ctx context.Context, t *testing.T, path string, stdout io.Writer, stderr io.Writer, args *args.PipelineArgs)

func WithTimeout

func WithTimeout(d time.Duration, f func(t *testing.T)) func(t *testing.T)

WithTimeout adds a timeout to the test function (f). If the `-timeout` flag is provided, then `f` will be called without a timeout and the `go test` command will handle the deadline.

Types

This section is empty.

Jump to

Keyboard shortcuts

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