Versions in this module Expand all Collapse all v1 v1.0.0 Oct 25, 2020 Changes in this version + var ErrNotOfErrorType = errors.New("value is not of type error") + var ErrNotOfLenType = errors.New("value type should be Array, Slice, String or Map") + var ErrNotOfMapType = errors.New("value should be a map") + var ErrNotOfResponseRecorderType = errors.New("value is not of type *httptest.ResponseRecorder") + var ErrNotOfSliceType = errors.New("value should be a slice") + var ErrNotOfStringType = errors.New("value should be a string") + type Assert interface + That func(v interface{}) Expectation + func New(t PublicTB) Assert + type AttributeParser interface + Attr func(key interface{}) Expectation + Index func(i int) Expectation + type CommonExpectation interface + AsError func(target interface{}) + HaveKind func(k reflect.Kind) + IsDeepEq func(e interface{}) + IsEq func(e interface{}) + IsError func(target error) + IsNil func() + Matches func(m Matcher) + NoDiff func(e interface{}) + type Expectation interface + Log func(log string) Expectation + Logf func(format string, args ...interface{}) Expectation + Not func() Expectation + OrFatal func() Expectation + Silent func() Expectation + type HTTPRecorderParser interface + BodyToString func() Expectation + Cookie func(cookie string) Expectation + Cookies func() Expectation + DecodeBody func(decoder func(*bytes.Buffer) (interface{}, error)) Expectation + Header func(header string) Expectation + Headers func() Expectation + JSONBodyToMap func() Expectation + JSONBodyToSlice func() Expectation + Response func() Expectation + Status func() Expectation + type LengthExpectation interface + HasLen func(len int) + HasMaxLen func(len int) + HasMinLen func(len int) + IsEmpty func() + type MapEntry struct + Key interface{} + Value interface{} + type MapExpectation interface + ContainsKey func(e interface{}) + ContainsValue func(e interface{}) + type MapTransformer interface + Entries func() Expectation + Keys func() Expectation + Values func() Expectation + type MatchResult struct + Log string + Matches bool + NLog string + type Matcher func(v interface{}) (MatchResult, error) + func All(matcher Matcher) Matcher + func AsError(target interface{}) Matcher + func AtLeast(n int, matcher Matcher) Matcher + func Contains(e interface{}) Matcher + func ContainsKey(e interface{}) Matcher + func ContainsValue(e interface{}) Matcher + func HasLen(len int) Matcher + func HasMaxLen(len int) Matcher + func HasMinLen(len int) Matcher + func HaveKind(k reflect.Kind) Matcher + func IsBlank() Matcher + func IsDeepEq(e interface{}) Matcher + func IsEmpty() Matcher + func IsEq(e interface{}) Matcher + func IsError(target error) Matcher + func IsNil() Matcher + func MatchRe(reg string) Matcher + func NoDiff(e interface{}) Matcher + func Unordered(e interface{}) Matcher + type PublicTB interface + Cleanup func(func()) + Error func(args ...interface{}) + Errorf func(format string, args ...interface{}) + Fail func() + FailNow func() + Failed func() bool + Fatal func(args ...interface{}) + Fatalf func(format string, args ...interface{}) + Helper func() + Log func(args ...interface{}) + Logf func(format string, args ...interface{}) + Name func() string + Skip func(args ...interface{}) + SkipNow func() + Skipf func(format string, args ...interface{}) + Skipped func() bool + type SliceExpectation interface + All func(m Matcher) + Any func(m Matcher) + AtLeast func(n int, m Matcher) + Contains func(e interface{}) + Unordered func(e interface{}) + type StringExpectation interface + IsBlank func() + MatchRe func(reg string)