MCPcopy
hub / github.com/httprunner/httprunner / Run

Method Run

hrp/step_request.go:956–964  ·  view source on GitHub ↗
(r *SessionRunner)

Source from the content-addressed store, hash-verified

954}
955
956func (s *StepRequestValidation) Run(r *SessionRunner) (*StepResult, error) {
957 if s.step.Request != nil {
958 return runStepRequest(r, s.step)
959 }
960 if s.step.WebSocket != nil {
961 return runStepWebSocket(r, s.step)
962 }
963 return nil, errors.New("unexpected protocol type")
964}
965
966func (s *StepRequestValidation) AssertEqual(jmesPath string, expected interface{}, msg string) *StepRequestValidation {
967 v := Validator{

Callers

nothing calls this directly

Calls 2

runStepRequestFunction · 0.85
runStepWebSocketFunction · 0.85

Tested by

no test coverage detected