Versions in this module Expand all Collapse all v1 v1.0.0 Mar 4, 2022 Changes in this version + func CallerInfo() []string + func Contains(t ITesting, result, expected interface{}, message ...interface{}) bool + func Containsf(t ITesting, result, expected interface{}, msg string, args ...interface{}) bool + func DeepEqual(t ITesting, result, expected interface{}, message ...interface{}) bool + func DidPanic(f PanicTestFunc) (bool, interface{}, string) + func DirExists(t ITesting, path string, message ...interface{}) bool + func DirExistsf(t ITesting, path string, msg string, args ...interface{}) bool + func Empty(t ITesting, result interface{}, message ...interface{}) bool + func Emptyf(t ITesting, object interface{}, msg string, args ...interface{}) bool + func Equal(t ITesting, result, expected interface{}, message ...interface{}) bool + func EqualError(t ITesting, result error, errorMessage string, message ...interface{}) bool + func EqualErrorf(t ITesting, result error, errorMessage string, msg string, args ...interface{}) bool + func Equalf(t ITesting, result, expected interface{}, msg string, args ...interface{}) bool + func Error(t ITesting, result error, message ...interface{}) bool + func ErrorAs(t ITesting, result, expected error, message ...interface{}) bool + func ErrorAsf(t ITesting, result, expected error, msg string, args ...interface{}) bool + func ErrorIs(t ITesting, result, expected error, message ...interface{}) bool + func ErrorIsf(t ITesting, result, expected error, msg string, args ...interface{}) bool + func Errorf(t ITesting, result error, msg string, args ...interface{}) bool + func Eventually(t ITesting, condition func() bool, waitFor, tick time.Duration, ...) bool + func Eventuallyf(t ITesting, condition func() bool, waitFor, tick time.Duration, msg string, ...) bool + func Exactly(t ITesting, result, expected interface{}, message ...interface{}) bool + func Exactlyf(t ITesting, result, expected interface{}, msg string, args ...interface{}) bool + func Fail(t ITesting, failureMessage string, message ...interface{}) bool + func FailNow(t ITesting, failureMessage string, message ...interface{}) bool + func FailNowf(t ITesting, failureMessage string, msg string, args ...interface{}) bool + func Failf(t ITesting, failureMessage string, msg string, args ...interface{}) bool + func False(t ITesting, result interface{}, message ...interface{}) bool + func Falsef(t ITesting, result interface{}, msg string, args ...interface{}) bool + func FileExists(t ITesting, path string, message ...interface{}) bool + func FileNotExists(t ITesting, path string, message ...interface{}) bool + func HttpBody(handler http.HandlerFunc, method, url string, values url.Values) string + func HttpBodyContains(t ITesting, handler http.HandlerFunc, method, url string, values url.Values, ...) bool + func HttpBodyNotContains(t ITesting, handler http.HandlerFunc, method, url string, values url.Values, ...) bool + func HttpError(t ITesting, handler http.HandlerFunc, method, url string, values url.Values, ...) bool + func HttpRedirect(t ITesting, handler http.HandlerFunc, method, url string, values url.Values, ...) bool + func HttpStatusCode(t ITesting, handler http.HandlerFunc, method, url string, values url.Values, ...) bool + func HttpSuccess(t ITesting, handler http.HandlerFunc, method, url string, values url.Values, ...) bool + func IsEmpty(result interface{}) bool + func Len(t ITesting, object interface{}, length int, message ...interface{}) bool + func Never(t ITesting, condition func() bool, waitFor, tick time.Duration, ...) bool + func Nil(t ITesting, result interface{}, message ...interface{}) bool + func NoDirExists(t ITesting, path string, message ...interface{}) bool + func NoDirExistsf(t ITesting, path string, msg string, args ...interface{}) bool + func NoError(t ITesting, result error, message ...interface{}) bool + func NotContains(t ITesting, result, expected interface{}, message ...interface{}) bool + func NotContainsf(t ITesting, result, expected interface{}, msg string, args ...interface{}) bool + func NotEmpty(t ITesting, result interface{}, message ...interface{}) bool + func NotEmptyf(t ITesting, result interface{}, msg string, args ...interface{}) bool + func NotEqual(t ITesting, result, expected interface{}, message ...interface{}) bool + func NotErrorIs(t ITesting, result, expected error, message ...interface{}) bool + func NotNil(t ITesting, result interface{}, message ...interface{}) bool + func NotPanics(t ITesting, f PanicTestFunc, message ...interface{}) bool + func Panics(t ITesting, f PanicTestFunc, message ...interface{}) bool + func PanicsWithError(t ITesting, errorMessage string, f PanicTestFunc, message ...interface{}) bool + func PanicsWithValue(t ITesting, expected interface{}, f PanicTestFunc, message ...interface{}) bool + func True(t ITesting, result interface{}, message ...interface{}) bool + func Truef(t ITesting, result interface{}, msg string, args ...interface{}) bool + func WithinDuration(t ITesting, expected, actual time.Time, delta time.Duration, ...) bool + type Assertions struct + func New(t ITesting) *Assertions + func (a *Assertions) Contains(result, expected interface{}, message ...interface{}) bool + func (a *Assertions) Containsf(result, expected interface{}, msg string, args ...interface{}) bool + func (a *Assertions) DeepEqual(result, expected interface{}, message ...interface{}) bool + func (a *Assertions) DirExists(path string, message ...interface{}) bool + func (a *Assertions) DirExistsf(path string, msg string, args ...interface{}) bool + func (a *Assertions) Empty(result interface{}, message ...interface{}) bool + func (a *Assertions) Emptyf(result interface{}, msg string, args ...interface{}) bool + func (a *Assertions) Equal(result, expected interface{}, message ...interface{}) bool + func (a *Assertions) EqualError(result error, errMessage string, message ...interface{}) bool + func (a *Assertions) EqualErrorf(result error, errorMessage string, msg string, args ...interface{}) bool + func (a *Assertions) Equalf(result, expected interface{}, msg string, args ...interface{}) bool + func (a *Assertions) Error(result error, message ...interface{}) bool + func (a *Assertions) ErrorAs(result, expected error, message ...interface{}) bool + func (a *Assertions) ErrorAsf(result, expected error, msg string, args ...interface{}) bool + func (a *Assertions) ErrorIs(result, expected error, message ...interface{}) bool + func (a *Assertions) ErrorIsf(result, expected error, msg string, args ...interface{}) bool + func (a *Assertions) Errorf(result error, msg string, args ...interface{}) bool + func (a *Assertions) Eventually(condition func() bool, waitFor, tick time.Duration, message ...interface{}) bool + func (a *Assertions) Eventuallyf(condition func() bool, waitFor, tick time.Duration, msg string, ...) bool + func (a *Assertions) Exactly(result, expected interface{}, message ...interface{}) bool + func (a *Assertions) Exactlyf(result, expected interface{}, msg string, args ...interface{}) bool + func (a *Assertions) Fail(failureMessage string, message ...interface{}) bool + func (a *Assertions) FailNow(failureMessage string, message ...interface{}) bool + func (a *Assertions) FailNowf(failureMessage string, msg string, args ...interface{}) bool + func (a *Assertions) Failf(failureMessage string, msg string, args ...interface{}) bool + func (a *Assertions) False(result interface{}, message ...interface{}) bool + func (a *Assertions) Falsef(result interface{}, msg string, args ...interface{}) bool + func (a *Assertions) FileExists(path string, message ...interface{}) bool + func (a *Assertions) FileNotExists(path string, message ...interface{}) bool + func (a *Assertions) HttpBodyContains(handler http.HandlerFunc, method, url string, values url.Values, ...) bool + func (a *Assertions) HttpBodyNotContains(handler http.HandlerFunc, method, url string, values url.Values, ...) bool + func (a *Assertions) HttpError(handler http.HandlerFunc, method, url string, values url.Values, ...) bool + func (a *Assertions) HttpRedirect(handler http.HandlerFunc, method, url string, values url.Values, ...) bool + func (a *Assertions) HttpStatusCode(handler http.HandlerFunc, method, url string, values url.Values, ...) bool + func (a *Assertions) HttpSuccess(handler http.HandlerFunc, method, url string, values url.Values, ...) bool + func (a *Assertions) IsEmpty(result interface{}) bool + func (a *Assertions) Len(object interface{}, length int, message ...interface{}) bool + func (a *Assertions) Never(condition func() bool, waitFor, tick time.Duration, message ...interface{}) bool + func (a *Assertions) Nil(result interface{}, message ...interface{}) bool + func (a *Assertions) NoDirExists(path string, message ...interface{}) bool + func (a *Assertions) NoDirExistsf(path string, msg string, args ...interface{}) bool + func (a *Assertions) NoError(result error, message ...interface{}) bool + func (a *Assertions) NotContains(result, expected interface{}, message ...interface{}) bool + func (a *Assertions) NotContainsf(result, expected interface{}, msg string, args ...interface{}) bool + func (a *Assertions) NotEmpty(result interface{}, message ...interface{}) bool + func (a *Assertions) NotEmptyf(result interface{}, msg string, args ...interface{}) bool + func (a *Assertions) NotEqual(result, expected interface{}, message ...interface{}) bool + func (a *Assertions) NotErrorIs(result, expected error, message ...interface{}) bool + func (a *Assertions) NotNil(result interface{}, message ...interface{}) bool + func (a *Assertions) NotPanics(f PanicTestFunc, message ...interface{}) bool + func (a *Assertions) Panics(f PanicTestFunc, message ...interface{}) bool + func (a *Assertions) PanicsWithError(errorMessage string, f PanicTestFunc, message ...interface{}) bool + func (a *Assertions) PanicsWithValue(expected interface{}, f PanicTestFunc, message ...interface{}) bool + func (a *Assertions) True(value interface{}, message ...interface{}) bool + func (a *Assertions) Truef(result interface{}, msg string, args ...interface{}) bool + func (a *Assertions) WithinDuration(expected, actual time.Time, delta time.Duration, message ...interface{}) bool + type IFailNow interface + FailNow func() + type ITesting interface + Errorf func(format string, args ...interface{}) + type ITestingHelper interface + Helper func() + type PanicTestFunc func()