th

package
v0.29.3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcmeServerDirURL added in v0.28.0

func AcmeServerDirURL(e fixenv.Env) string

func Close added in v0.23.9

func Close(closer io.Closer)

func ErrorSubstringCmp added in v0.23.19

func ErrorSubstringCmp(gotErr error, expect string) string

func GetHttpClient added in v0.23.17

func GetHttpClient() *http.Client

func HttpQuery added in v0.26.2

func HttpQuery(e fixenv.Env) string

func InitMain added in v0.28.0

func InitMain(m *testing.M)

func LocalhostCert added in v0.28.0

func LocalhostCert(e fixenv.Env) tls.Certificate

func Logger added in v0.23.9

func Logger(t zaptest.TestingT) *zap.Logger

func MockController added in v0.28.0

func MockController(e fixenv.Env) minimock.MockController

func NewFreeLocalTcpAddress added in v0.28.0

func NewFreeLocalTcpAddress(e fixenv.Env) *net.TCPAddr

func NewLocalTcpListener added in v0.28.0

func NewLocalTcpListener(e fixenv.Env) *net.TCPListener

func NoLog

func NoLog(ctx context.Context) context.Context

func PebbleHTTPValidationPort added in v0.28.0

func PebbleHTTPValidationPort(e fixenv.Env) int

func PebbleTLSValidationPort added in v0.28.0

func PebbleTLSValidationPort(e fixenv.Env) int

func StdLogger added in v0.28.0

func StdLogger(e fixenv.Env) *log.Logger

func TestContext

func TestContext(t zaptest.TestingT) (ctx context.Context, flush func())

func TestHttpServer added in v0.28.0

func TestHttpServer(e fixenv.Env, handler http.Handler) *httptest.Server

func TmpDir added in v0.25.0

func TmpDir(e fixenv.Env) string

func ZapLogger added in v0.28.0

func ZapLogger(e fixenv.Env) *zap.Logger

Types

type Env added in v0.25.0

type Env struct {
	Ctx context.Context
	*fixenv.EnvT
	TD
}

func NewEnv added in v0.25.0

func NewEnv(t *testing.T) (env *Env, ctx context.Context, cancel func())

func (*Env) T added in v0.25.0

func (e *Env) T() fixenv.T

type PebbleServer added in v0.28.0

type PebbleServer struct {
	HTTPSDirectoryURL string
	TLSCert           tls.Certificate
}

func Pebble added in v0.28.0

func Pebble(e fixenv.Env) *PebbleServer

type TD added in v0.25.0

type TD struct {
	*testdeep.T
}

TD struct need for rename embedded field in Env

Directories

Path Synopsis
Package testcert contains a test-only localhost certificate.
Package testcert contains a test-only localhost certificate.

Jump to

Keyboard shortcuts

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