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

Function withResultBases

expr/interceptor_test.go:137–145  ·  view source on GitHub ↗
(t *testing.T, bases ...DataType)

Source from the content-addressed store, hash-verified

135}
136
137func withResultBases(t *testing.T, bases ...DataType) func(*MethodExpr) {
138 t.Helper()
139 return func(m *MethodExpr) {
140 if m.Result == nil {
141 m.Result = &AttributeExpr{Type: &Object{}}
142 }
143 m.Result.Bases = bases
144 }
145}
146
147func makeInterceptor(t *testing.T, opts ...func(*InterceptorExpr)) *InterceptorExpr {
148 t.Helper()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected