wrappers

package
v0.0.0-...-eff5e3f Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestWrapper

type TestWrapper struct {
	*testing.T
}

TestWrapper is a nil-safe implementation of *testing.TB. You can use it the same as *testing.T or *testing.B even if {T,B} are empty. For implementations that cannot be wrapped, check the docs.

func (*TestWrapper) Error

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

func (*TestWrapper) Errorf

func (t *TestWrapper) Errorf(format string, args ...interface{})

func (*TestWrapper) Fail

func (t *TestWrapper) Fail()

func (*TestWrapper) FailNow

func (t *TestWrapper) FailNow()

func (*TestWrapper) Failed

func (t *TestWrapper) Failed() bool

Returns false by default if T is not set.

func (*TestWrapper) Fatal

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

func (*TestWrapper) Fatalf

func (t *TestWrapper) Fatalf(format string, args ...interface{})

func (*TestWrapper) Helper

func (t *TestWrapper) Helper()

func (*TestWrapper) Log

func (t *TestWrapper) Log(args ...interface{})

func (*TestWrapper) Logf

func (t *TestWrapper) Logf(format string, args ...interface{})

func (*TestWrapper) Name

func (t *TestWrapper) Name() string

Returns `TestWrapper` if T is nil.

func (*TestWrapper) Skip

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

func (*TestWrapper) SkipNow

func (t *TestWrapper) SkipNow()

No-op if T is nil.

func (*TestWrapper) Skipf

func (t *TestWrapper) Skipf(format string, args ...interface{})

func (*TestWrapper) Skipped

func (t *TestWrapper) Skipped() bool

Returns false if T is nil.

Jump to

Keyboard shortcuts

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