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

Function CreateHTTPServices

http/codegen/testing.go:18–20  ·  view source on GitHub ↗

CreateHTTPServices creates a new ServicesData instance for testing.

(root *expr.RootExpr)

Source from the content-addressed store, hash-verified

16
17// CreateHTTPServices creates a new ServicesData instance for testing.
18func CreateHTTPServices(root *expr.RootExpr) *ServicesData {
19 return NewServicesData(service.NewServicesData(root), root.API.HTTP)
20}

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 2

NewServicesDataFunction · 0.92
NewServicesDataFunction · 0.70

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