vektor icon indicating copy to clipboard operation
vektor copied to clipboard

vTest: add additional helpful methods to response.go

Open MacklinEngineering opened this issue 3 years ago • 1 comments

A place for us to add thoughts on which methods we might want to implement into response.go!

MacklinEngineering avatar Feb 03 '22 15:02 MacklinEngineering

Generic methods that take user provided funcs and validates with them. The signature might look something like:

func (r *Response) AssertBodyStringFunc(func(body, val string) bool, val string) *Response
func (r *Response) AssertBodyStringsFunc(func(body, val string) bool, vals []string) *Response

danielledeleo avatar Feb 03 '22 15:02 danielledeleo