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

Function withResult

expr/interceptor_test.go:211–216  ·  view source on GitHub ↗
(t *testing.T, attrs *NamedAttributeExpr)

Source from the content-addressed store, hash-verified

209}
210
211func withResult(t *testing.T, attrs *NamedAttributeExpr) func(*MethodExpr) {
212 t.Helper()
213 return func(m *MethodExpr) {
214 m.Result = &AttributeExpr{Type: &Object{attrs}}
215 }
216}
217
218func namedAttr(t *testing.T, name string) *NamedAttributeExpr {
219 t.Helper()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected