Versions in this module Expand all Collapse all v0 v0.0.10 Dec 15, 2023 Changes in this version + var TestListeners = map[uuid.UUID]*TestListener + func JSONMarshal[O []byte | string](t testing.TB, a any) O + func ListenerModName() string + func NopConn() net.Conn + type TestListener struct + Called struct{ ... } + ID uuid.UUID + func NewTestListener(t testing.TB, ctx context.Context) (*TestListener, func()) + func NewTestListeners(t testing.TB, ctx context.Context, n int) ([]*TestListener, func()) + func (e *TestListener) Accept() (net.Conn, error) + func (e *TestListener) AcceptConn(c net.Conn) + func (e *TestListener) Addr() net.Addr + func (e *TestListener) CaddyModule() caddy.ModuleInfo + func (e *TestListener) Cleanup() error + func (e *TestListener) Close() error + func (e *TestListener) FailCleanup(msg string) + func (e *TestListener) FailProvision(msg string) + func (e *TestListener) FailUnmarshalCaddyfile(msg string) + func (e *TestListener) GetReal() *TestListener + func (e *TestListener) Provision(caddy.Context) error + func (e *TestListener) UnmarshalCaddyfile(d *caddyfile.Dispenser) error