RunJSONRPCDSL returns the DSL root resulting from running the given DSL. Used only in tests.
(t *testing.T, dsl func())
| 11 | // RunJSONRPCDSL returns the DSL root resulting from running the given DSL. |
| 12 | // Used only in tests. |
| 13 | func 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. |
| 20 | func CreateJSONRPCServices(root *expr.RootExpr) *httpcodegen.ServicesData { |