testflow

package
v0.0.0-...-932f57c Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsInOrder

func ContainsInOrder(body string, candidates ...string) bool

func Match

func Match(pattern, text string) ([][]string, error)

func MatchOne

func MatchOne(pattern, text string) ([]string, error)

func MatchOneThen

func MatchOneThen(pattern, text string, subIdx int) (string, error)

func NamedMatchOne

func NamedMatchOne(pattern, text string) (map[string]string, error)

func ParseOpenRightDrawerParams

func ParseOpenRightDrawerParams(body []byte) ([]any, error)

Types

type Then

type Then struct {
	// contains filtered or unexported fields
}

func NewThen

func NewThen(t *testing.T, w *httptest.ResponseRecorder, r *http.Request) *Then

func (*Then) Then

func (v *Then) Then(f ValidatorFunc) *Then

func (*Then) ThenEvent

func (*Then) ThenValidate

func (v *Then) ThenValidate(fs ...ValidatorFunc) *Then

type ValidatorFunc

type ValidatorFunc func(t *testing.T, w *httptest.ResponseRecorder, r *http.Request)

func Combine

func Combine(fs ...ValidatorFunc) ValidatorFunc

func ContainsInOrderAtUpdatePortal

func ContainsInOrderAtUpdatePortal(idx int, candidates ...string) ValidatorFunc

func OpenRightDrawer

func OpenRightDrawer(title string) ValidatorFunc

Jump to

Keyboard shortcuts

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