MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / executeSteps

Method executeSteps

tests/contract/contract_test.go:298–318  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

296}
297
298func (r *runner) executeSteps(t *testing.T) {
299 for _, s := range r.sc.Steps {
300 s := s
301 switch s.Action {
302 case "request":
303 r.execRequest(t, &s)
304 case "inject_message":
305 r.execInjectMessage(t, &s)
306 case "ws_connect":
307 r.execWSConnect(t, &s)
308 case "ws_reconnect":
309 r.execWSReconnect(t, &s)
310 case "ws_read":
311 r.execWSRead(t, &s)
312 case "verify_and_retry":
313 r.execVerifyAndRetry(t, &s)
314 default:
315 t.Fatalf("step %s: unknown action %q", s.ID, s.Action)
316 }
317 }
318}
319
320func (r *runner) cleanup() {
321 if r.wsConn != nil {

Callers 1

TestScenariosFunction · 0.45

Calls 6

execRequestMethod · 0.95
execInjectMessageMethod · 0.95
execWSConnectMethod · 0.95
execWSReconnectMethod · 0.95
execWSReadMethod · 0.95
execVerifyAndRetryMethod · 0.95

Tested by

no test coverage detected