wexttest

package
v0.0.0-...-2e0c1f2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run[OPTS any, INJ any](t *testing.T, ext wext.Extension[OPTS, INJ], opts Options[OPTS, INJ])

Run run tests with extension and hooks

Types

type Options

type Options[OPTS any, INJ any] struct {
	AltKeys []string
	Options []func(opt *OPTS)

	BeforeInstaller func()
	AfterInstaller  func()

	BeforeInstall func()
	AfterInstall  func()

	BeforeStartup func()
	AfterStartup  func()

	BeforeCheck func()
	OnCheck     func(code int, body []byte)
	AfterCheck  func()

	BeforeShutdown func()
	AfterShutdown  func()

	BeforeHandle func()
	Handle       func(c winter.Context, ins wext.Instance[OPTS, INJ])
	OnHandle     func(code int, body []byte)
	AfterHandle  func()
}

Jump to

Keyboard shortcuts

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