Documentation ¶
Index ¶
- type Assertions
- type Test
- type TestExpect
- type TestFile
- type TestRunner
- type TestSetup
- type TestifyAssertions
- func (a *TestifyAssertions) Equal(expected, actual interface{}, msgAndArgs ...interface{})
- func (a *TestifyAssertions) EqualError(theError error, errString string, msgAndArgs ...interface{})
- func (a *TestifyAssertions) NoError(err error, msgAndArgs ...interface{})
- func (a *TestifyAssertions) True(value bool, msgAndArgs ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assertions ¶
type Assertions interface { NoError(err error, msgAndArgs ...interface{}) EqualError(theError error, errString string, msgAndArgs ...interface{}) True(value bool, msgAndArgs ...interface{}) Equal(expected, actual interface{}, msgAndArgs ...interface{}) }
func NewTestifyAssertions ¶
func NewTestifyAssertions(t assert.TestingT) Assertions
type Test ¶
type Test struct { Run string Setup TestSetup Expect TestExpect }
type TestExpect ¶
type TestRunner ¶
type TestRunner struct {
// contains filtered or unexported fields
}
func NewTestRunner ¶
func NewTestRunner(osFs *afero.Afero, testPath string, useMemFs bool, assert Assertions) *TestRunner
func (*TestRunner) Run ¶
func (runner *TestRunner) Run()
type TestifyAssertions ¶
type TestifyAssertions struct {
// contains filtered or unexported fields
}
func (*TestifyAssertions) Equal ¶
func (a *TestifyAssertions) Equal(expected, actual interface{}, msgAndArgs ...interface{})
func (*TestifyAssertions) EqualError ¶
func (a *TestifyAssertions) EqualError(theError error, errString string, msgAndArgs ...interface{})
func (*TestifyAssertions) NoError ¶
func (a *TestifyAssertions) NoError(err error, msgAndArgs ...interface{})
func (*TestifyAssertions) True ¶
func (a *TestifyAssertions) True(value bool, msgAndArgs ...interface{})
Click to show internal directories.
Click to hide internal directories.