Documentation ¶
Index ¶
- type Assert
- func (a Assert) Cmp(expected, actual interface{}, opts ...cmp.Option)
- func (a Assert) Contains(expected, list interface{}, msg ...interface{})
- func (a Assert) Eq(expected, actual interface{}, msg ...interface{})
- func (a Assert) Error(actual error, msg ...interface{})
- func (a Assert) False(actual bool, msg ...interface{})
- func (a Assert) NCmp(expected, actual interface{}, opts ...cmp.Option)
- func (a Assert) Ne(expected, actual interface{}, msg ...interface{})
- func (a Assert) Nil(actual interface{}, msg ...interface{})
- func (a Assert) NoError(actual error, msg ...interface{})
- func (a Assert) NotNil(actual interface{}, msg ...interface{})
- func (a Assert) SameElements(expected, actual interface{}, msg ...interface{})
- func (a Assert) True(actual bool, msg ...interface{})
- type T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assert ¶
type Assert struct {
// contains filtered or unexported fields
}
Assert is a helper for tests
func (Assert) Contains ¶
func (a Assert) Contains(expected, list interface{}, msg ...interface{})
Contains asserts the expected value is in the given list
func (Assert) Eq ¶
func (a Assert) Eq(expected, actual interface{}, msg ...interface{})
Eq asserts the given values match
func (Assert) Ne ¶
func (a Assert) Ne(expected, actual interface{}, msg ...interface{})
Ne asserts the given values don't match
func (Assert) Nil ¶
func (a Assert) Nil(actual interface{}, msg ...interface{})
Nil asserts the given value is nil
func (Assert) NotNil ¶
func (a Assert) NotNil(actual interface{}, msg ...interface{})
NotNil asserts the given value is not nil
func (Assert) SameElements ¶
func (a Assert) SameElements(expected, actual interface{}, msg ...interface{})
SameElements asserts the values have the same elements. It ignores the order of the elements
Click to show internal directories.
Click to hide internal directories.