Documentation ¶
Index ¶
- Variables
- func Context(t *testing.T) context.Context
- func DNSResolverForInMemListener(lis InMemListener) *client.Resolver
- func GenerateDomain() string
- func GenericMatcher(tb testing.TB, expected interface{}) gomock.Matcher
- func HTTP2ClientForInMemListener(lis InMemListener) *http.Client
- func HTTPClientForAddr(tb testing.TB, addr net.Addr) *http.Client
- func HTTPClientForInMemListener(lis InMemListener) *http.Client
- func HTTPClientForListener(tb testing.TB, lis net.Listener) *http.Client
- func IP(rawIP string) td.TestDeep
- func MustParseURL(rawURL string) *url.URL
- func NewInMemoryPacketConnPipe(clientAddr, srvAddr net.Addr) (upstream, downstream net.PacketConn)
- func NewTCPListener(tb testing.TB, rawAddr string) (listener net.Listener)
- type InMemListener
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Names = [...]string{}/* 237 elements not displayed */ TLDs = [...]string{ "com", "org", "net", "int", "edu", "gov", } Subdomains = [...]string{ "www", "mail", "owa", "outlook", "git", "docs", "blog", } )
View Source
var ErrListenerClosed = errors.New("listener closed")
Functions ¶
func DNSResolverForInMemListener ¶ added in v0.6.0
func DNSResolverForInMemListener(lis InMemListener) *client.Resolver
func GenerateDomain ¶ added in v0.6.0
func GenerateDomain() string
func GenericMatcher ¶ added in v0.6.0
func HTTP2ClientForInMemListener ¶ added in v0.7.0
func HTTP2ClientForInMemListener(lis InMemListener) *http.Client
func HTTPClientForAddr ¶ added in v0.9.0
func HTTPClientForInMemListener ¶ added in v0.6.0
func HTTPClientForInMemListener(lis InMemListener) *http.Client
func HTTPClientForListener ¶ added in v0.6.0
func MustParseURL ¶ added in v0.7.0
func NewInMemoryPacketConnPipe ¶ added in v0.8.0
func NewInMemoryPacketConnPipe(clientAddr, srvAddr net.Addr) (upstream, downstream net.PacketConn)
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.