Documentation ¶
Index ¶
- type AddressSubject
- func (subject *AddressSubject) Equals(another v2net.Address)
- func (subject *AddressSubject) EqualsString(another string)
- func (subject *AddressSubject) IsDomain()
- func (subject *AddressSubject) IsIPv4()
- func (subject *AddressSubject) IsIPv6()
- func (subject *AddressSubject) IsNotDomain()
- func (subject *AddressSubject) IsNotIPv4()
- func (subject *AddressSubject) IsNotIPv6()
- func (subject *AddressSubject) NotEquals(another v2net.Address)
- func (subject *AddressSubject) NotEqualsString(another string)
- type Assert
- func (this *Assert) Address(value v2net.Address) *AddressSubject
- func (this *Assert) Bool(value bool) *BoolSubject
- func (this *Assert) Byte(value byte) *ByteSubject
- func (this *Assert) Bytes(value []byte) *BytesSubject
- func (this *Assert) Destination(value v2net.Destination) *DestinationSubject
- func (this *Assert) Error(value error) *ErrorSubject
- func (this *Assert) Fail(message string)
- func (this *Assert) IP(value net.IP) *IPSubject
- func (this *Assert) Int(value int) *IntSubject
- func (this *Assert) Int64(value int64) *Int64Subject
- func (this *Assert) Pointer(value interface{}) *PointerSubject
- func (this *Assert) Port(value v2net.Port) *PortSubject
- func (this *Assert) String(value string) *StringSubject
- func (this *Assert) Uint16(value uint16) *Uint16Subject
- func (this *Assert) Uint32(value uint32) *Uint32Subject
- type BoolSubject
- type ByteSubject
- type BytesSubject
- type DestinationSubject
- func (this *DestinationSubject) EqualsString(another string)
- func (this *DestinationSubject) HasAddress() *AddressSubject
- func (this *DestinationSubject) HasPort() *PortSubject
- func (this *DestinationSubject) IsNotTCP()
- func (this *DestinationSubject) IsNotUDP()
- func (this *DestinationSubject) IsTCP()
- func (this *DestinationSubject) IsUDP()
- type ErrorSubject
- type IPSubject
- type Int64Subject
- type IntSubject
- type PointerSubject
- type PortSubject
- type StringSubject
- type Subject
- type Uint16Subject
- type Uint32Subject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressSubject ¶
type AddressSubject struct { Subject // contains filtered or unexported fields }
func (*AddressSubject) Equals ¶
func (subject *AddressSubject) Equals(another v2net.Address)
func (*AddressSubject) EqualsString ¶
func (subject *AddressSubject) EqualsString(another string)
func (*AddressSubject) IsDomain ¶
func (subject *AddressSubject) IsDomain()
func (*AddressSubject) IsIPv4 ¶
func (subject *AddressSubject) IsIPv4()
func (*AddressSubject) IsIPv6 ¶
func (subject *AddressSubject) IsIPv6()
func (*AddressSubject) IsNotDomain ¶
func (subject *AddressSubject) IsNotDomain()
func (*AddressSubject) IsNotIPv4 ¶
func (subject *AddressSubject) IsNotIPv4()
func (*AddressSubject) IsNotIPv6 ¶
func (subject *AddressSubject) IsNotIPv6()
func (*AddressSubject) NotEquals ¶
func (subject *AddressSubject) NotEquals(another v2net.Address)
func (*AddressSubject) NotEqualsString ¶
func (subject *AddressSubject) NotEqualsString(another string)
type Assert ¶
type Assert struct {
// contains filtered or unexported fields
}
func (*Assert) Bool ¶
func (this *Assert) Bool(value bool) *BoolSubject
Assert on a boolean variable.
func (*Assert) Byte ¶
func (this *Assert) Byte(value byte) *ByteSubject
func (*Assert) Bytes ¶
func (this *Assert) Bytes(value []byte) *BytesSubject
func (*Assert) Destination ¶
func (this *Assert) Destination(value v2net.Destination) *DestinationSubject
func (*Assert) Error ¶
func (this *Assert) Error(value error) *ErrorSubject
func (*Assert) Int ¶
func (this *Assert) Int(value int) *IntSubject
func (*Assert) Int64 ¶
func (this *Assert) Int64(value int64) *Int64Subject
func (*Assert) Pointer ¶
func (this *Assert) Pointer(value interface{}) *PointerSubject
func (*Assert) String ¶
func (this *Assert) String(value string) *StringSubject
func (*Assert) Uint16 ¶
func (this *Assert) Uint16(value uint16) *Uint16Subject
func (*Assert) Uint32 ¶
func (this *Assert) Uint32(value uint32) *Uint32Subject
type BoolSubject ¶
type BoolSubject struct { Subject // contains filtered or unexported fields }
func (*BoolSubject) Equals ¶
func (subject *BoolSubject) Equals(expectation bool)
to be equal to another boolean variable.
type ByteSubject ¶
type ByteSubject struct { Subject // contains filtered or unexported fields }
func (*ByteSubject) Equals ¶
func (subject *ByteSubject) Equals(expectation byte)
func (*ByteSubject) GreaterThan ¶
func (subject *ByteSubject) GreaterThan(expectation byte)
func (*ByteSubject) LessThan ¶
func (subject *ByteSubject) LessThan(expectation byte)
type BytesSubject ¶
type BytesSubject struct { Subject // contains filtered or unexported fields }
func (*BytesSubject) Equals ¶
func (subject *BytesSubject) Equals(expectation []byte)
func (*BytesSubject) NotEquals ¶
func (subject *BytesSubject) NotEquals(expectation []byte)
type DestinationSubject ¶
type DestinationSubject struct { Subject // contains filtered or unexported fields }
func (*DestinationSubject) EqualsString ¶
func (this *DestinationSubject) EqualsString(another string)
func (*DestinationSubject) HasAddress ¶
func (this *DestinationSubject) HasAddress() *AddressSubject
func (*DestinationSubject) HasPort ¶
func (this *DestinationSubject) HasPort() *PortSubject
func (*DestinationSubject) IsNotTCP ¶
func (this *DestinationSubject) IsNotTCP()
func (*DestinationSubject) IsNotUDP ¶
func (this *DestinationSubject) IsNotUDP()
func (*DestinationSubject) IsTCP ¶
func (this *DestinationSubject) IsTCP()
func (*DestinationSubject) IsUDP ¶
func (this *DestinationSubject) IsUDP()
type ErrorSubject ¶
type ErrorSubject struct { Subject // contains filtered or unexported fields }
func (*ErrorSubject) Equals ¶
func (subject *ErrorSubject) Equals(expectation error)
func (*ErrorSubject) IsNil ¶
func (subject *ErrorSubject) IsNil()
func (*ErrorSubject) IsNotNil ¶
func (subject *ErrorSubject) IsNotNil()
type Int64Subject ¶
type Int64Subject struct { Subject // contains filtered or unexported fields }
func (*Int64Subject) AtLeast ¶
func (subject *Int64Subject) AtLeast(expectation int64)
func (*Int64Subject) AtMost ¶
func (subject *Int64Subject) AtMost(expectation int64)
func (*Int64Subject) Equals ¶
func (subject *Int64Subject) Equals(expectation int64)
func (*Int64Subject) GreaterThan ¶
func (subject *Int64Subject) GreaterThan(expectation int64)
type IntSubject ¶
type IntSubject struct { Subject // contains filtered or unexported fields }
func (*IntSubject) Equals ¶
func (subject *IntSubject) Equals(expectation int)
func (*IntSubject) GreaterThan ¶
func (subject *IntSubject) GreaterThan(expectation int)
func (*IntSubject) LessThan ¶
func (subject *IntSubject) LessThan(expectation int)
type PointerSubject ¶
type PointerSubject struct { Subject // contains filtered or unexported fields }
func (*PointerSubject) Equals ¶
func (subject *PointerSubject) Equals(expectation interface{})
func (*PointerSubject) IsNil ¶
func (subject *PointerSubject) IsNil()
func (*PointerSubject) IsNotNil ¶
func (subject *PointerSubject) IsNotNil()
type PortSubject ¶
type PortSubject struct { Subject // contains filtered or unexported fields }
func (*PortSubject) Equals ¶
func (subject *PortSubject) Equals(expectation v2net.Port)
func (*PortSubject) GreaterThan ¶
func (subject *PortSubject) GreaterThan(expectation v2net.Port)
func (*PortSubject) IsValid ¶
func (subject *PortSubject) IsValid()
func (*PortSubject) LessThan ¶
func (subject *PortSubject) LessThan(expectation v2net.Port)
type StringSubject ¶
type StringSubject struct { Subject // contains filtered or unexported fields }
func (*StringSubject) Contains ¶
func (subject *StringSubject) Contains(substring string)
func (*StringSubject) Equals ¶
func (subject *StringSubject) Equals(expectation string)
func (*StringSubject) NotContains ¶
func (subject *StringSubject) NotContains(substring string)
func (*StringSubject) NotEquals ¶
func (subject *StringSubject) NotEquals(expectation string)
type Subject ¶
type Subject struct {
// contains filtered or unexported fields
}
func (*Subject) DisplayString ¶
func (*Subject) FailWithMessage ¶
type Uint16Subject ¶
type Uint16Subject struct { Subject // contains filtered or unexported fields }
func (*Uint16Subject) Equals ¶
func (subject *Uint16Subject) Equals(expectation uint16)
func (*Uint16Subject) GreaterThan ¶
func (subject *Uint16Subject) GreaterThan(expectation uint16)
func (*Uint16Subject) IsNegative ¶
func (subject *Uint16Subject) IsNegative()
func (*Uint16Subject) IsPositive ¶
func (subject *Uint16Subject) IsPositive()
func (*Uint16Subject) LessThan ¶
func (subject *Uint16Subject) LessThan(expectation uint16)
type Uint32Subject ¶
type Uint32Subject struct { Subject // contains filtered or unexported fields }
func (*Uint32Subject) Equals ¶
func (subject *Uint32Subject) Equals(expectation uint32)
func (*Uint32Subject) GreaterThan ¶
func (subject *Uint32Subject) GreaterThan(expectation uint32)
func (*Uint32Subject) IsNegative ¶
func (subject *Uint32Subject) IsNegative()
func (*Uint32Subject) IsPositive ¶
func (subject *Uint32Subject) IsPositive()
func (*Uint32Subject) LessThan ¶
func (subject *Uint32Subject) LessThan(expectation uint32)
Click to show internal directories.
Click to hide internal directories.