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

Function withPayloadBases

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

Source from the content-addressed store, hash-verified

199}
200
201func withPayloadBases(t *testing.T, bases ...DataType) func(*MethodExpr) {
202 t.Helper()
203 return func(m *MethodExpr) {
204 if m.Payload == nil {
205 m.Payload = &AttributeExpr{Type: &Object{}}
206 }
207 m.Payload.Bases = bases
208 }
209}
210
211func withResult(t *testing.T, attrs *NamedAttributeExpr) func(*MethodExpr) {
212 t.Helper()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected