testutils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deadline

func Deadline(t *testing.T, dur time.Duration, fChan <-chan func(t *testing.T))

func GenerateRandomString added in v0.3.1

func GenerateRandomString() string

GenerateRandomString generates a random string

Types

type LogT

type LogT interface {
	Log(...interface{})
	Logf(string, ...interface{})
	Helper()
}

type Transport

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

func NewDefaultTestTransport

func NewDefaultTestTransport(t *testing.T, noTap bool) (*Transport, error)

NewDefaultTestTransport creates a default test transport

func NewTransport

func NewTransport(t LogT, client transport.Doer, noTap bool) *Transport

func (*Transport) Do

func (t *Transport) Do(ctx context.Context, method, uri string, opts ...transport.RequestOpt) (*http.Response, error)

func (*Transport) DoRaw

func (t *Transport) DoRaw(ctx context.Context, method, uri string, opts ...transport.RequestOpt) (net.Conn, error)

Jump to

Keyboard shortcuts

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