Documentation
¶
Index ¶
- func CheckPanic(t *testing.T, fn func(), contains string) bool
- func EqualBool(t *testing.T, got, expected bool, args ...interface{}) bool
- func EqualErrorMessage(t *testing.T, got, expected interface{}, args ...interface{})
- func EqualInt(t *testing.T, got, expected int, args ...interface{}) bool
- func EqualStr(t *testing.T, got, expected string, args ...interface{}) bool
- func IsFalse(t *testing.T, got bool, args ...interface{}) bool
- func IsTrue(t *testing.T, got bool, args ...interface{}) bool
- type TestingFT
- func (t *TestingFT) Errorf(format string, args ...interface{})
- func (t *TestingFT) Fail()
- func (t *TestingFT) FailNow()
- func (t *TestingFT) Failed() bool
- func (t *TestingFT) Fatalf(format string, args ...interface{})
- func (t *TestingFT) Log(args ...interface{})
- func (t *TestingFT) Logf(format string, args ...interface{})
- func (t *TestingFT) Name() string
- func (t *TestingFT) Run(name string, f func(t *testing.T)) bool
- func (t *TestingFT) Skip(args ...interface{})
- func (t *TestingFT) SkipNow()
- func (t *TestingFT) Skipf(format string, args ...interface{})
- func (t *TestingFT) Skipped() bool
- type TestingT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPanic ¶
CheckPanic checks that fn() panics and that the panic() arg is a string that contains contains.
func EqualErrorMessage ¶
EqualErrorMessage prints a test error message of the form:
Message Failed test got: got_value expected: expected_value
Types ¶
type TestingFT ¶
type TestingFT struct { TestingT // contains filtered or unexported fields }
TestingFT is a type implementing td.TestingFT intended to be used in tests.
func NewTestingFT ¶ added in v1.2.0
NewTestingFT returns a new instance of *TestingFT.
func (*TestingFT) Log ¶
func (t *TestingFT) Log(args ...interface{})
Log mocks testing.T Log method.
func (*TestingFT) Skip ¶
func (t *TestingFT) Skip(args ...interface{})
Skip mocks testing.T Skip method.
type TestingT ¶
TestingT is a type implementing td.TestingT intended to be used in tests.
func NewTestingT ¶ added in v1.2.0
func NewTestingT() *TestingT
NewTestingT returns a new instance of *TestingT.
func (*TestingT) Error ¶
func (t *TestingT) Error(args ...interface{})
Fatal mocks testing.T Error method.
Click to show internal directories.
Click to hide internal directories.