Versions in this module Expand all Collapse all v1 v1.1.3 Jan 9, 2016 v1.1.2 Jan 9, 2016 Changes in this version + type FailNower interface + FailNow func() v1.1.1 Jan 8, 2016 Changes in this version + var AnError = errors.New("assert.AnError general error for testing") + func CallerInfo() []string + func Condition(t TestingT, comp Comparison, msgAndArgs ...interface{}) bool + func Contains(t TestingT, s, contains interface{}, msgAndArgs ...interface{}) bool + func Empty(t TestingT, object interface{}, msgAndArgs ...interface{}) bool + func Equal(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool + func EqualError(t TestingT, theError error, errString string, msgAndArgs ...interface{}) bool + func EqualValues(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool + func Error(t TestingT, err error, msgAndArgs ...interface{}) bool + func Exactly(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool + func Fail(t TestingT, failureMessage string, msgAndArgs ...interface{}) bool + func FailNow(t TestingT, failureMessage string, msgAndArgs ...interface{}) bool + func False(t TestingT, value bool, msgAndArgs ...interface{}) bool + func HTTPBody(handler http.HandlerFunc, method, url string, values url.Values) string + func HTTPBodyContains(t TestingT, handler http.HandlerFunc, method, url string, values url.Values, ...) bool + func HTTPBodyNotContains(t TestingT, handler http.HandlerFunc, method, url string, values url.Values, ...) bool + func HTTPError(t TestingT, handler http.HandlerFunc, method, url string, values url.Values) bool + func HTTPRedirect(t TestingT, handler http.HandlerFunc, method, url string, values url.Values) bool + func HTTPSuccess(t TestingT, handler http.HandlerFunc, method, url string, values url.Values) bool + func Implements(t TestingT, interfaceObject interface{}, object interface{}, ...) bool + func InDelta(t TestingT, expected, actual interface{}, delta float64, ...) bool + func InDeltaSlice(t TestingT, expected, actual interface{}, delta float64, ...) bool + func InEpsilon(t TestingT, expected, actual interface{}, epsilon float64, ...) bool + func InEpsilonSlice(t TestingT, expected, actual interface{}, delta float64, ...) bool + func IsType(t TestingT, expectedType interface{}, object interface{}, ...) bool + func JSONEq(t TestingT, expected string, actual string, msgAndArgs ...interface{}) bool + func Len(t TestingT, object interface{}, length int, msgAndArgs ...interface{}) bool + func Nil(t TestingT, object interface{}, msgAndArgs ...interface{}) bool + func NoError(t TestingT, err error, msgAndArgs ...interface{}) bool + func NotContains(t TestingT, s, contains interface{}, msgAndArgs ...interface{}) bool + func NotEmpty(t TestingT, object interface{}, msgAndArgs ...interface{}) bool + func NotEqual(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool + func NotNil(t TestingT, object interface{}, msgAndArgs ...interface{}) bool + func NotPanics(t TestingT, f PanicTestFunc, msgAndArgs ...interface{}) bool + func NotRegexp(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{}) bool + func NotZero(t TestingT, i interface{}, msgAndArgs ...interface{}) bool + func ObjectsAreEqual(expected, actual interface{}) bool + func ObjectsAreEqualValues(expected, actual interface{}) bool + func Panics(t TestingT, f PanicTestFunc, msgAndArgs ...interface{}) bool + func Regexp(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{}) bool + func True(t TestingT, value bool, msgAndArgs ...interface{}) bool + func WithinDuration(t TestingT, expected, actual time.Time, delta time.Duration, ...) bool + func Zero(t TestingT, i interface{}, msgAndArgs ...interface{}) bool + type Assertions struct + func New(t TestingT) *Assertions + func (a *Assertions) Condition(comp Comparison, msgAndArgs ...interface{}) bool + func (a *Assertions) Contains(s interface{}, contains interface{}, msgAndArgs ...interface{}) bool + func (a *Assertions) Empty(object interface{}, msgAndArgs ...interface{}) bool + func (a *Assertions) Equal(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool + func (a *Assertions) EqualError(theError error, errString string, msgAndArgs ...interface{}) bool + func (a *Assertions) EqualValues(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool + func (a *Assertions) Error(err error, msgAndArgs ...interface{}) bool + func (a *Assertions) Exactly(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool + func (a *Assertions) Fail(failureMessage string, msgAndArgs ...interface{}) bool + func (a *Assertions) FailNow(failureMessage string, msgAndArgs ...interface{}) bool + func (a *Assertions) False(value bool, msgAndArgs ...interface{}) bool + func (a *Assertions) HTTPBodyContains(handler http.HandlerFunc, method string, url string, values url.Values, ...) bool + func (a *Assertions) HTTPBodyNotContains(handler http.HandlerFunc, method string, url string, values url.Values, ...) bool + func (a *Assertions) HTTPError(handler http.HandlerFunc, method string, url string, values url.Values) bool + func (a *Assertions) HTTPRedirect(handler http.HandlerFunc, method string, url string, values url.Values) bool + func (a *Assertions) HTTPSuccess(handler http.HandlerFunc, method string, url string, values url.Values) bool + func (a *Assertions) Implements(interfaceObject interface{}, object interface{}, msgAndArgs ...interface{}) bool + func (a *Assertions) InDelta(expected interface{}, actual interface{}, delta float64, ...) bool + func (a *Assertions) InDeltaSlice(expected interface{}, actual interface{}, delta float64, ...) bool + func (a *Assertions) InEpsilon(expected interface{}, actual interface{}, epsilon float64, ...) bool + func (a *Assertions) InEpsilonSlice(expected interface{}, actual interface{}, delta float64, ...) bool + func (a *Assertions) IsType(expectedType interface{}, object interface{}, msgAndArgs ...interface{}) bool + func (a *Assertions) JSONEq(expected string, actual string, msgAndArgs ...interface{}) bool + func (a *Assertions) Len(object interface{}, length int, msgAndArgs ...interface{}) bool + func (a *Assertions) Nil(object interface{}, msgAndArgs ...interface{}) bool + func (a *Assertions) NoError(err error, msgAndArgs ...interface{}) bool + func (a *Assertions) NotContains(s interface{}, contains interface{}, msgAndArgs ...interface{}) bool + func (a *Assertions) NotEmpty(object interface{}, msgAndArgs ...interface{}) bool + func (a *Assertions) NotEqual(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool + func (a *Assertions) NotNil(object interface{}, msgAndArgs ...interface{}) bool + func (a *Assertions) NotPanics(f PanicTestFunc, msgAndArgs ...interface{}) bool + func (a *Assertions) NotRegexp(rx interface{}, str interface{}, msgAndArgs ...interface{}) bool + func (a *Assertions) NotZero(i interface{}, msgAndArgs ...interface{}) bool + func (a *Assertions) Panics(f PanicTestFunc, msgAndArgs ...interface{}) bool + func (a *Assertions) Regexp(rx interface{}, str interface{}, msgAndArgs ...interface{}) bool + func (a *Assertions) True(value bool, msgAndArgs ...interface{}) bool + func (a *Assertions) WithinDuration(expected time.Time, actual time.Time, delta time.Duration, ...) bool + func (a *Assertions) Zero(i interface{}, msgAndArgs ...interface{}) bool + type Comparison func() (success bool) + type PanicTestFunc func() + type TestingT interface + Errorf func(format string, args ...interface{}) + FailNow func()