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

Function CreateGRPCServices

grpc/codegen/testing.go:21–23  ·  view source on GitHub ↗

CreateGRPCServices creates a new ServicesData instance for testing.

(root *expr.RootExpr)

Source from the content-addressed store, hash-verified

19
20// CreateGRPCServices creates a new ServicesData instance for testing.
21func CreateGRPCServices(root *expr.RootExpr) *ServicesData {
22 return NewServicesData(service.NewServicesData(root))
23}
24
25func sectionCode(t *testing.T, section ...*codegen.SectionTemplate) string {
26 t.Helper()

Callers 15

TestClientTypeFilesFunction · 0.85
TestServerGRPCInterfaceFunction · 0.85
TestServerHandlerInitFunction · 0.85
TestRequestDecoderFunction · 0.85
TestResponseEncoderFunction · 0.85
TestClientEndpointInitFunction · 0.85
TestRequestEncoderFunction · 0.85
TestResponseDecoderFunction · 0.85
TestServerTypeFilesFunction · 0.85
TestStreamingFunction · 0.85

Calls 2

NewServicesDataFunction · 0.92
NewServicesDataFunction · 0.70

Tested by 15

TestClientTypeFilesFunction · 0.68
TestServerGRPCInterfaceFunction · 0.68
TestServerHandlerInitFunction · 0.68
TestRequestDecoderFunction · 0.68
TestResponseEncoderFunction · 0.68
TestClientEndpointInitFunction · 0.68
TestRequestEncoderFunction · 0.68
TestResponseDecoderFunction · 0.68
TestServerTypeFilesFunction · 0.68
TestStreamingFunction · 0.68