testing

package
v4.6.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IsDomain = assert.CreateMatcher(func(a net.Address) bool {
	return a.Family().IsDomain()
}, "is Domain")
View Source
var IsIP = assert.CreateMatcher(func(a net.Address) bool {
	return a.Family().IsIPv4() || a.Family().IsIPv6()
}, "is IP")
View Source
var IsIPv4 = assert.CreateMatcher(func(a net.Address) bool {
	return a.Family().IsIPv4()
}, "is IPv4")
View Source
var IsIPv6 = assert.CreateMatcher(func(a net.Address) bool {
	return a.Family().IsIPv6()
}, "is IPv6")
View Source
var IsTCP = assert.CreateMatcher(func(a net.Destination) bool {
	return a.Network == net.Network_TCP
}, "is TCP")
View Source
var IsUDP = assert.CreateMatcher(func(a net.Destination) bool {
	return a.Network == net.Network_UDP
}, "is UDP")

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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