RunGRPCDSL returns the GRPC DSL root resulting from running the given DSL. It is used only in tests.
(t *testing.T, dsl func())
| 12 | // RunGRPCDSL returns the GRPC DSL root resulting from running the given DSL. |
| 13 | // It is used only in tests. |
| 14 | func RunGRPCDSL(t *testing.T, dsl func()) *expr.RootExpr { |
| 15 | // reset all roots and codegen data structures |
| 16 | root := expr.RunDSL(t, dsl) |
| 17 | return root |
| 18 | } |
| 19 | |
| 20 | // CreateGRPCServices creates a new ServicesData instance for testing. |
| 21 | func CreateGRPCServices(root *expr.RootExpr) *ServicesData { |