testutil

package
v0.6.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package testutil contains utilities used in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Retry

func Retry(t *testing.T, testFun func(t *RetriableT))

Retry invokes the provided test multiple tests until it succeeds.

Types

type RetriableT

type RetriableT struct {
	*testing.T
	// contains filtered or unexported fields
}

RetriableT is a wrapper around *testing.T with the same methods that supports retrying tests.

func (*RetriableT) Error

func (t *RetriableT) Error(args ...interface{})

Error wraps testing.T.Error()

func (*RetriableT) Errorf

func (t *RetriableT) Errorf(msg string, args ...interface{})

Errorf wraps testing.T.Errorf()

func (*RetriableT) Fail

func (t *RetriableT) Fail()

Fail wraps testing.T.Fail()

func (*RetriableT) FailNow

func (t *RetriableT) FailNow()

FailNow wraps testing.T.FailNow()

func (*RetriableT) Fatal

func (t *RetriableT) Fatal(args ...interface{})

Fatal wraps testing.T.Fatal()

func (*RetriableT) Fatalf

func (t *RetriableT) Fatalf(msg string, args ...interface{})

Fatalf wraps testing.T.Fatalf()

func (*RetriableT) Skip

func (t *RetriableT) Skip(args ...interface{})

Skip wraps testing.T.Skip()

func (*RetriableT) Skipf

func (t *RetriableT) Skipf(msg string, args ...interface{})

Skipf wraps testing.T.Skipf()

Jump to

Keyboard shortcuts

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