MCPcopy
hub / github.com/httprunner/httprunner / AssertContains

Method AssertContains

hrp/step_request.go:1032–1041  ·  view source on GitHub ↗
(jmesPath string, expected interface{}, msg string)

Source from the content-addressed store, hash-verified

1030}
1031
1032func (s *StepRequestValidation) AssertContains(jmesPath string, expected interface{}, msg string) *StepRequestValidation {
1033 v := Validator{
1034 Check: jmesPath,
1035 Assert: "contains",
1036 Expect: expected,
1037 Message: msg,
1038 }
1039 s.step.Validators = append(s.step.Validators, v)
1040 return s
1041}
1042
1043func (s *StepRequestValidation) AssertTypeMatch(jmesPath string, expected interface{}, msg string) *StepRequestValidation {
1044 v := Validator{

Callers 2

TestWebSocketProtocolFunction · 0.80
TestCaseCallFunctionFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestWebSocketProtocolFunction · 0.64
TestCaseCallFunctionFunction · 0.64