Documentation
¶
Index ¶
- Variables
- type TestSuite
- func (s *TestSuite) Contains(container interface{}, thingToFind interface{}, msgAndArgs ...interface{})
- func (s *TestSuite) Len(object interface{}, length int, msgAndArgs ...interface{})
- func (s *TestSuite) NoError(err error, msgAndArgs ...interface{})
- func (s *TestSuite) NotNil(object interface{}, msgAndArgs ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var Run = suite.Run
Alias suite.Run so suite doesn't have to be imported
Functions ¶
This section is empty.
Types ¶
type TestSuite ¶
func (*TestSuite) Contains ¶
func (s *TestSuite) Contains(container interface{}, thingToFind interface{}, msgAndArgs ...interface{})
Contains uses Require by default, because this is usually checked before indexing a map. Using Assert would result in a key not in bounds panic, so Require is a better default.
func (*TestSuite) Len ¶
Len uses Require by default, because this is usually checked before indexing an array. Using Assert would result in a out of bounds panic, so Require is a better default.
Click to show internal directories.
Click to hide internal directories.