testrunner

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandLocalTCPAddr

func RandLocalTCPAddr(t *testing.T) *net.TCPAddr

Types

type Runner

type Runner[RT func(*runner.Runtime[CT]) error, CT any] struct {
	// contains filtered or unexported fields
}

func New

func New[RT func(*runner.Runtime[CT]) error, CT any](t *testing.T, run RT, cfg CT) *Runner[RT, CT]

func (*Runner[RT, CT]) Logger added in v0.0.6

func (r *Runner[RT, CT]) Logger() *testlogger.Logger

func (*Runner[RT, CT]) Run

func (r *Runner[RT, CT]) Run() error

Run runs the application and waits until it stops.

func (*Runner[RT, CT]) SetHTTPReadyStartWaiter

func (r *Runner[RT, CT]) SetHTTPReadyStartWaiter(url string, timeout time.Duration) *Runner[RT, CT]

func (*Runner[RT, CT]) SetStartWaiter

func (r *Runner[RT, CT]) SetStartWaiter(w func(CT) bool, timeout time.Duration) *Runner[RT, CT]

func (*Runner[RT, CT]) SetTCPReadyStartWaiter

func (r *Runner[RT, CT]) SetTCPReadyStartWaiter(addr string, timeout time.Duration) *Runner[RT, CT]

func (*Runner[RT, CT]) Start

func (r *Runner[RT, CT]) Start() *Runner[RT, CT]

Start starts the application in a separate goroutine.

Jump to

Keyboard shortcuts

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