testutils

package
v0.0.0-...-70303ca Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LeakCheckLSAN

func LeakCheckLSAN(t testing.TB)

LeadCheckLSAN will check for memory leaks if tests are run with 'go test -asan' address sanitizer. This should be run at the very end of the Test.

Types

type ServerTrace

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

ServerTrace holds trace events for server-side operations

type TestServer

type TestServer struct {
	*httptest.Server
	URL    string
	CaFile string
	// contains filtered or unexported fields
}

TestServer is a test HTTPS server with tracing capabilities.

func NewServer

func NewServer(t *testing.T) *TestServer

NewServer creates a new test HTTPS server with tracing.

type TraceConn

type TraceConn struct {
	net.Conn
	// contains filtered or unexported fields
}

TraceConn wraps net.Conn to trace connection events

func (*TraceConn) Close

func (c *TraceConn) Close() error

func (*TraceConn) Read

func (c *TraceConn) Read(b []byte) (n int, err error)

func (*TraceConn) Write

func (c *TraceConn) Write(b []byte) (n int, err error)

type TraceListener

type TraceListener struct {
	net.Listener
	// contains filtered or unexported fields
}

TraceListener wraps net.Listener to trace accept events

func (*TraceListener) Accept

func (l *TraceListener) Accept() (net.Conn, error)

Directories

Path Synopsis
internal/testutils/proto/gen.go
internal/testutils/proto/gen.go

Jump to

Keyboard shortcuts

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