Documentation
¶
Index ¶
- func AssertAnyStringContains(t *testing.T, expectedContained string, actualContaining []string)
- func AssertEqual(t *testing.T, expected interface{}, actual interface{})
- func AssertFalse(t *testing.T, object bool)
- func AssertNearEqual(t *testing.T, expected int64, actual int64, delta int64)
- func AssertNil(t *testing.T, object interface{})
- func AssertNotEqual(t *testing.T, expected interface{}, actual interface{})
- func AssertNotNil(t *testing.T, object interface{})
- func AssertNotPanics(t *testing.T, fn func())
- func AssertNotSame(t *testing.T, expected interface{}, actual interface{})
- func AssertSame(t *testing.T, expected interface{}, actual interface{})
- func AssertStringContains(t *testing.T, expectedContained string, actualContaining string)
- func AssertTrue(t *testing.T, object bool)
- func NewConfigWithBuffer(t *testing.T, logLevel log.Level) (*log.Config, *bytes.Buffer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertAnyStringContains ¶ added in v1.2.1
func AssertEqual ¶
AssertEqual is a semantic test assertion for object equality.
func AssertFalse ¶
AssertFalse is a semantic test assertion for object truthiness.
func AssertNearEqual ¶
AssertNearEqual is a semantic test assertion for numeric accuracy.
func AssertNotEqual ¶
AssertNotEqual is a semantic test assertion for object equality.
func AssertNotNil ¶
AssertNotNil is a semantic test assertion for nility.
func AssertNotPanics ¶ added in v1.1.0
AssertNotPanics is a semantic test assertion that a function does not panic.
func AssertNotSame ¶
AssertNotSame is a semantic test assertion for referential equality.
func AssertSame ¶
AssertSame is a semantic test assertion for referential equality.
func AssertStringContains ¶
AssertStringContains is a semantic test assertion for partial string matching.
func AssertTrue ¶
AssertTrue is a semantic test assertion for object truthiness.
Types ¶
This section is empty.