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

Function RunJSONRPCDSL

jsonrpc/codegen/testing.go:13–17  ·  view source on GitHub ↗

RunJSONRPCDSL returns the DSL root resulting from running the given DSL. Used only in tests.

(t *testing.T, dsl func())

Source from the content-addressed store, hash-verified

11// RunJSONRPCDSL returns the DSL root resulting from running the given DSL.
12// Used only in tests.
13func RunJSONRPCDSL(t *testing.T, dsl func()) *expr.RootExpr {
14 // Use the existing expr.RunDSL function
15 root := expr.RunDSL(t, dsl)
16 return root
17}
18
19// CreateJSONRPCServices creates a new ServicesData instance for JSON-RPC testing.
20func CreateJSONRPCServices(root *expr.RootExpr) *httpcodegen.ServicesData {

Callers 4

TestJSONRPCSSEFunction · 0.85

Calls 1

RunDSLFunction · 0.92

Tested by 4

TestJSONRPCSSEFunction · 0.68