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

Function RunHTTPDSL

http/codegen/testing.go:11–15  ·  view source on GitHub ↗

RunHTTPDSL returns the HTTP DSL root resulting from running the given DSL.

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

Source from the content-addressed store, hash-verified

9
10// RunHTTPDSL returns the HTTP DSL root resulting from running the given DSL.
11func 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.
18func CreateHTTPServices(root *expr.RootExpr) *ServicesData {

Callers 15

TestBodyTypeDeclFunction · 0.85
TestBodyTypeInitFunction · 0.85
TestClientTypesFunction · 0.85
TestClientTypeFilesFunction · 0.85
TestEncodeErrorFunction · 0.85
TestClientDecodeFunction · 0.85
TestCookieAPIKeySecurityFunction · 0.85
TestServerMountFunction · 0.85
renderClientTypesCodeFunction · 0.85
renderClientDecodeCodeFunction · 0.85
TestClientEncodeFunction · 0.85

Calls 1

RunDSLFunction · 0.92

Tested by 15

TestBodyTypeDeclFunction · 0.68
TestBodyTypeInitFunction · 0.68
TestClientTypesFunction · 0.68
TestClientTypeFilesFunction · 0.68
TestEncodeErrorFunction · 0.68
TestClientDecodeFunction · 0.68
TestCookieAPIKeySecurityFunction · 0.68
TestServerMountFunction · 0.68
renderClientTypesCodeFunction · 0.68
renderClientDecodeCodeFunction · 0.68
TestClientEncodeFunction · 0.68