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

Function runDSL

codegen/service/testing.go:27–32  ·  view source on GitHub ↗

runDSL returns the DSL root resulting from running the given DSL.

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

Source from the content-addressed store, hash-verified

25
26// runDSL returns the DSL root resulting from running the given DSL.
27func runDSL(t *testing.T, dsl func()) *expr.RootExpr {
28 root := initDSL(t)
29 require.True(t, eval.Execute(dsl, nil))
30 require.NoError(t, eval.RunDSL())
31 return root
32}
33
34// runDSLWithError returns the DSL root and error from running the given DSL.
35func runDSLWithError(t *testing.T, dsl func()) (*expr.RootExpr, error) {

Callers 2

TestConvertFilesFunction · 0.70
TestInterceptorsFunction · 0.70

Calls 3

ExecuteFunction · 0.92
RunDSLFunction · 0.92
initDSLFunction · 0.85

Tested by 2

TestConvertFilesFunction · 0.56
TestInterceptorsFunction · 0.56