assert

package
v1.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressSubject

type AddressSubject struct {
	assert.Subject
	// contains filtered or unexported fields
}

func Address

func Address(value v2net.Address) *AddressSubject

func (*AddressSubject) DisplayString

func (subject *AddressSubject) DisplayString() string

func (*AddressSubject) Equals

func (subject *AddressSubject) Equals(another v2net.Address)

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) Named

func (subject *AddressSubject) Named(name string) *AddressSubject

type DestinationSubject

type DestinationSubject struct {
	assert.Subject
	// contains filtered or unexported fields
}

func Destination

func Destination(value v2net.Destination) *DestinationSubject

func (*DestinationSubject) DisplayString

func (this *DestinationSubject) DisplayString() string

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()

func (*DestinationSubject) Named

func (this *DestinationSubject) Named(name string) *DestinationSubject

type IPSubject

type IPSubject struct {
	assert.Subject
	// contains filtered or unexported fields
}

func IP

func IP(value net.IP) *IPSubject

func (*IPSubject) DisplayString

func (subject *IPSubject) DisplayString() string

func (*IPSubject) Equals

func (subject *IPSubject) Equals(ip net.IP)

func (*IPSubject) IsNil

func (subject *IPSubject) IsNil()

func (*IPSubject) Named

func (subject *IPSubject) Named(name string) *IPSubject

type PortSubject

type PortSubject struct {
	assert.Subject
	// contains filtered or unexported fields
}

func Port

func Port(value v2net.Port) *PortSubject

func (*PortSubject) DisplayString

func (subject *PortSubject) DisplayString() string

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)

func (*PortSubject) Named

func (subject *PortSubject) Named(name string) *PortSubject

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL