RunHTTPDSL returns the HTTP DSL root resulting from running the given DSL.
(t *testing.T, dsl func())
| 9 | |
| 10 | // RunHTTPDSL returns the HTTP DSL root resulting from running the given DSL. |
| 11 | func RunHTTPDSL(t *testing.T, dsl func()) *expr.RootExpr { |
| 12 | // reset all roots and codegen data structures |
| 13 | root := expr.RunDSL(t, dsl) |
| 14 | return root |
| 15 | } |
| 16 | |
| 17 | // CreateHTTPServices creates a new ServicesData instance for testing. |
| 18 | func CreateHTTPServices(root *expr.RootExpr) *ServicesData { |