Documentation ¶
Index ¶
- type Matcher
- func (m *Matcher) IsEmpty() *Matcher
- func (m *Matcher) IsEqualTo(expected any) *Matcher
- func (m *Matcher) IsGreaterThan(expected any) *Matcher
- func (m *Matcher) IsNil() *Matcher
- func (m *Matcher) IsNotEmpty() *Matcher
- func (m *Matcher) IsNotNil() *Matcher
- func (m *Matcher) IsOk() *Matcher
- func (m *Matcher) That(actual any) *Matcher
- func (m *Matcher) ThatPanics(actual func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
Matcher hold the current state of the assertion.
func (*Matcher) IsEqualTo ¶
IsEqualTo verifies that the actual value capture in `That()` is equal to the expected value.
func (*Matcher) IsGreaterThan ¶
IsGreaterThan matches if the actual value is greater than the expected value.
func (*Matcher) IsNotEmpty ¶
IsNotEmpty matches a non-empty string.
func (*Matcher) IsOk ¶
IsOk expects the actual value to be nil and the type to be an instance of error.
func (*Matcher) ThatPanics ¶
func (m *Matcher) ThatPanics(actual func())
Click to show internal directories.
Click to hide internal directories.