testrunner

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: MIT Imports: 9 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]) AssertLogNoErrors

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

func (*Runner[RT, CT]) AssertLogNoWarns

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

func (*Runner[RT, CT]) Logs

func (r *Runner[RT, CT]) Logs() string

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) *Runner[RT, CT]

func (*Runner[RT, CT]) SetStartWaiter

func (r *Runner[RT, CT]) SetStartWaiter(w func(CT) bool) *Runner[RT, CT]

func (*Runner[RT, CT]) SetTCPReadyStartWaiter

func (r *Runner[RT, CT]) SetTCPReadyStartWaiter(addr string) *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