MCPcopy Create free account
hub / github.com/goadesign/goa / executeSimple

Method executeSimple

jsonrpc/integration_tests/framework/executor.go:56–72  ·  view source on GitHub ↗

executeSimple handles basic request/response scenarios

(t *testing.T, scenario Scenario)

Source from the content-addressed store, hash-verified

54
55// executeSimple handles basic request/response scenarios
56func (e *executor) executeSimple(t *testing.T, scenario Scenario) {
57 t.Helper()
58
59 ctx := context.Background()
60
61 // Create client based on transport
62 switch scenario.Transport {
63 case TransportHTTP:
64 e.executeHTTP(ctx, t, scenario)
65 case TransportWebSocket:
66 e.executeWebSocket(ctx, t, scenario)
67 case TransportSSE:
68 e.executeSSE(ctx, t, scenario)
69 default:
70 require.Failf(t, "Unknown transport", "Unknown transport: %s", scenario.Transport)
71 }
72}
73
74// executeHTTP handles HTTP transport scenarios
75func (e *executor) executeHTTP(ctx context.Context, t *testing.T, scenario Scenario) {

Callers 1

ExecuteMethod · 0.95

Calls 3

executeHTTPMethod · 0.95
executeWebSocketMethod · 0.95
executeSSEMethod · 0.95

Tested by

no test coverage detected