testflow

package
v3.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 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 EqualIgnoreTime

func EqualIgnoreTime(str1, str2 string) bool

func ParseOpenRightDrawerParams

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

func RemoveTime

func RemoveTime(input string) string

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