Documentation
¶
Index ¶
- func ContainsInOrder(body string, candidates ...string) bool
- func Match(pattern, text string) ([][]string, error)
- func MatchOne(pattern, text string) ([]string, error)
- func MatchOneThen(pattern, text string, subIdx int) (string, error)
- func NamedMatchOne(pattern, text string) (map[string]string, error)
- func ParseOpenRightDrawerParams(body []byte) ([]any, error)
- func Validate(t *testing.T, w *httptest.ResponseRecorder, r *http.Request, ...) (*httptest.ResponseRecorder, *http.Request)
- type Then
- type ValidatorFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsInOrder ¶
func Validate ¶
func Validate(t *testing.T, w *httptest.ResponseRecorder, r *http.Request, fs ...ValidatorFunc) (*httptest.ResponseRecorder, *http.Request)
Types ¶
type Then ¶
type Then struct {
// contains filtered or unexported fields
}
func (*Then) Then ¶
func (v *Then) Then(f ValidatorFunc) *Then
func (*Then) ThenEvent ¶
func (v *Then) ThenEvent(f func(t *testing.T, w *httptest.ResponseRecorder, r *http.Request, e multipartestutils.TestEventResponse)) *Then
func (*Then) ThenValidate ¶
func (v *Then) ThenValidate(fs ...ValidatorFunc) *Then
type ValidatorFunc ¶
func Combine ¶
func Combine(fs ...ValidatorFunc) ValidatorFunc
func ContainsInOrderAtUpdatePortal ¶
func ContainsInOrderAtUpdatePortal(idx int, candidates ...string) ValidatorFunc
func OpenRightDrawer ¶
func OpenRightDrawer(title string) ValidatorFunc
func WrapEvent ¶
func WrapEvent(f func(t *testing.T, w *httptest.ResponseRecorder, r *http.Request, e multipartestutils.TestEventResponse)) ValidatorFunc
Click to show internal directories.
Click to hide internal directories.