MCPcopy
hub / github.com/httprunner/httprunner / AssertLengthEqual

Method AssertLengthEqual

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

Source from the content-addressed store, hash-verified

1085}
1086
1087func (s *StepRequestValidation) AssertLengthEqual(jmesPath string, expected interface{}, msg string) *StepRequestValidation {
1088 v := Validator{
1089 Check: jmesPath,
1090 Assert: "length_equals",
1091 Expect: expected,
1092 Message: msg,
1093 }
1094 s.step.Validators = append(s.step.Validators, v)
1095 return s
1096}
1097
1098func (s *StepRequestValidation) AssertContainedBy(jmesPath string, expected interface{}, msg string) *StepRequestValidation {
1099 v := Validator{

Callers 8

testcase_test.goFile · 0.80
TestHTTPProtocolFunction · 0.80
TestWebSocketProtocolFunction · 0.80
TestCaseParseVariablesFunction · 0.80
TestRendezvousFunction · 0.80
TestCaseCallFunctionFunction · 0.80

Calls

no outgoing calls

Tested by 7

TestHTTPProtocolFunction · 0.64
TestWebSocketProtocolFunction · 0.64
TestCaseParseVariablesFunction · 0.64
TestRendezvousFunction · 0.64
TestCaseCallFunctionFunction · 0.64