testutil

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpTestserverRunner

func HttpTestserverRunner(server *httptest.Server, started chan struct{}) srv_configs.HttpServerRunner

Types

type TestServer

type TestServer struct {
	TestServer *httptest.Server
	Addr       string
	Ctx        context.Context //nolint:containedctx // test
	Cancel     context.CancelFunc
}

func RunTestServerCmd

func RunTestServerCmd(t *testing.T, serverName string,
	buildInfo model.BuildInfo, serverConfig srv_configs.ServerConfiger, testConfig srv_configs.TestConfiger,
	args []string, log *slog.Logger,
) *TestServer

Jump to

Keyboard shortcuts

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