MCPcopy
hub / github.com/httprunner/httprunner / AssertEqual

Method AssertEqual

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

Source from the content-addressed store, hash-verified

964}
965
966func (s *StepRequestValidation) AssertEqual(jmesPath string, expected interface{}, msg string) *StepRequestValidation {
967 v := Validator{
968 Check: jmesPath,
969 Assert: "equals",
970 Expect: expected,
971 Message: msg,
972 }
973 s.step.Validators = append(s.step.Validators, v)
974 return s
975}
976
977func (s *StepRequestValidation) AssertGreater(jmesPath string, expected interface{}, msg string) *StepRequestValidation {
978 v := Validator{

Callers 15

TestBoomerStandaloneRunFunction · 0.80
TestRunCaseWithTimeoutFunction · 0.80
assertRunTestCasesFunction · 0.80
testcase_test.goFile · 0.80
TestHTTPProtocolFunction · 0.80
TestWebSocketProtocolFunction · 0.80
TestCaseConfigVariablesFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestBoomerStandaloneRunFunction · 0.64
TestRunCaseWithTimeoutFunction · 0.64
assertRunTestCasesFunction · 0.64
TestHTTPProtocolFunction · 0.64
TestWebSocketProtocolFunction · 0.64
TestCaseConfigVariablesFunction · 0.64
TestCaseStepVariablesFunction · 0.64