Documentation ¶
Overview ¶
Package testutil contains utilities used in tests.
Index ¶
- func Retry(t *testing.T, testFun func(t *RetriableT))
- type RetriableT
- func (t *RetriableT) Error(args ...interface{})
- func (t *RetriableT) Errorf(msg string, args ...interface{})
- func (t *RetriableT) Fail()
- func (t *RetriableT) FailNow()
- func (t *RetriableT) Fatal(args ...interface{})
- func (t *RetriableT) Fatalf(msg string, args ...interface{})
- func (t *RetriableT) Skip(args ...interface{})
- func (t *RetriableT) Skipf(msg string, args ...interface{})
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 ¶
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) 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()
Click to show internal directories.
Click to hide internal directories.