testutil

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: MIT Imports: 10 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{}) pkg_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,
	serverConfig pkg_configs.ServerConfiger, testConfig pkg_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