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

Function RunGRPCDSL

grpc/codegen/testing.go:14–18  ·  view source on GitHub ↗

RunGRPCDSL returns the GRPC DSL root resulting from running the given DSL. It is used only in tests.

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

Source from the content-addressed store, hash-verified

12// RunGRPCDSL returns the GRPC DSL root resulting from running the given DSL.
13// It is used only in tests.
14func 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.
21func CreateGRPCServices(root *expr.RootExpr) *ServicesData {

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 1

RunDSLFunction · 0.92

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