testkit

package
v1.4.0-nextgen.202510.7 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseHostPort added in v1.1.0

func ParseHostPort(t *testing.T, addr string) (string, uint)

func StartListener added in v1.1.0

func StartListener(t *testing.T, addr string) (net.Listener, string)

func TestPipeConn

func TestPipeConn(t *testing.T, a, b func(*testing.T, net.Conn), loop int)

func TestTCPConn

func TestTCPConn(t *testing.T, a, b func(*testing.T, net.Conn), loop int)

func TestTCPConnWithListener

func TestTCPConnWithListener(t *testing.T, listen func(*testing.T, string, string) net.Listener, a, b func(*testing.T, net.Conn), loop int)

Types

type DNSServer

type DNSServer struct {
	// contains filtered or unexported fields
}

func StartDNSServer

func StartDNSServer(t *testing.T, records map[string][]string) *DNSServer

func (*DNSServer) Addr

func (s *DNSServer) Addr() string

func (*DNSServer) Close

func (s *DNSServer) Close() error

func (*DNSServer) QueryCount

func (s *DNSServer) QueryCount(name string) int

Jump to

Keyboard shortcuts

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