Versions in this module Expand all Collapse all v0 v0.14.4 Nov 26, 2015 Changes in this version + type Assertion struct + func Assert(t *testing.T) *Assertion + func (a *Assertion) Bool(value bool) *BoolSubject + func (a *Assertion) Byte(value byte) *ByteSubject + func (a *Assertion) Bytes(value []byte) *BytesSubject + func (a *Assertion) Error(value error) *ErrorSubject + func (a *Assertion) Int(value int) *IntSubject + func (a *Assertion) Int64(value int64) *Int64Subject + func (a *Assertion) Pointer(value interface{}) *PointerSubject + func (a *Assertion) String(value string) *StringSubject + func (a *Assertion) Uint16(value uint16) *Uint16Subject + type BoolSubject struct + func NewBoolSubject(base *Subject, value bool) *BoolSubject + func (subject *BoolSubject) DisplayString() string + func (subject *BoolSubject) Equals(expectation bool) + func (subject *BoolSubject) Fail(verb string, other bool) + func (subject *BoolSubject) IsFalse() + func (subject *BoolSubject) IsTrue() + func (subject *BoolSubject) Named(name string) *BoolSubject + type ByteSubject struct + func NewByteSubject(base *Subject, value byte) *ByteSubject + func (subject *ByteSubject) DisplayString() string + func (subject *ByteSubject) Equals(expectation byte) + func (subject *ByteSubject) Fail(verb string, other byte) + func (subject *ByteSubject) GreaterThan(expectation byte) + func (subject *ByteSubject) LessThan(expectation byte) + func (subject *ByteSubject) Named(name string) *ByteSubject + type BytesSubject struct + func NewBytesSubject(base *Subject, value []byte) *BytesSubject + func (subject *BytesSubject) DisplayString() string + func (subject *BytesSubject) Equals(expectation []byte) + func (subject *BytesSubject) Fail(verb string, other []byte) + func (subject *BytesSubject) Named(name string) *BytesSubject + type ErrorSubject struct + func NewErrorSubject(base *Subject, value error) *ErrorSubject + func (subject *ErrorSubject) DisplayString() string + func (subject *ErrorSubject) Equals(expectation error) + func (subject *ErrorSubject) Fail(verb string, other error) + func (subject *ErrorSubject) IsNil() + func (subject *ErrorSubject) IsNotNil() + func (subject *ErrorSubject) Named(name string) *ErrorSubject + type Int64Subject struct + func NewInt64Subject(base *Subject, value int64) *Int64Subject + func (subject *Int64Subject) AtLeast(expectation int64) + func (subject *Int64Subject) AtMost(expectation int64) + func (subject *Int64Subject) DisplayString() string + func (subject *Int64Subject) Equals(expectation int64) + func (subject *Int64Subject) Fail(verb string, other int64) + func (subject *Int64Subject) GreaterThan(expectation int64) + func (subject *Int64Subject) Named(name string) *Int64Subject + type IntSubject struct + func NewIntSubject(base *Subject, value int) *IntSubject + func (subject *IntSubject) DisplayString() string + func (subject *IntSubject) Equals(expectation int) + func (subject *IntSubject) Fail(verb string, other int) + func (subject *IntSubject) GreaterThan(expectation int) + func (subject *IntSubject) LessThan(expectation int) + func (subject *IntSubject) Named(name string) *IntSubject + type PointerSubject struct + func NewPointerSubject(base *Subject, value interface{}) *PointerSubject + func (subject *PointerSubject) DisplayString() string + func (subject *PointerSubject) Equals(expectation interface{}) + func (subject *PointerSubject) Fail(verb string, other interface{}) + func (subject *PointerSubject) IsNil() + func (subject *PointerSubject) IsNotNil() + func (subject *PointerSubject) Named(name string) *PointerSubject + type StringSubject struct + func NewStringSubject(base *Subject, value string) *StringSubject + func (subject *StringSubject) DisplayString() string + func (subject *StringSubject) Equals(expectation string) + func (subject *StringSubject) Fail(verb string, other string) + func (subject *StringSubject) Named(name string) *StringSubject + type Subject struct + func NewSubject(assert *Assertion) *Subject + func (subject *Subject) DisplayString(value string) string + func (subject *Subject) FailWithMessage(message string) + func (subject *Subject) Named(name string) + type Uint16Subject struct + func NewUint16Subject(base *Subject, value uint16) *Uint16Subject + func (subject *Uint16Subject) DisplayString() string + func (subject *Uint16Subject) Equals(expectation uint16) + func (subject *Uint16Subject) Fail(verb string, other uint16) + func (subject *Uint16Subject) GreaterThan(expectation uint16) + func (subject *Uint16Subject) LessThan(expectation uint16) + func (subject *Uint16Subject) Named(name string) *Uint16Subject + func (subject *Uint16Subject) Positive()