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

Function withPayload

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

Source from the content-addressed store, hash-verified

192}
193
194func withPayload(t *testing.T, attrs *NamedAttributeExpr) func(*MethodExpr) {
195 t.Helper()
196 return func(m *MethodExpr) {
197 m.Payload = &AttributeExpr{Type: &Object{attrs}}
198 }
199}
200
201func withPayloadBases(t *testing.T, bases ...DataType) func(*MethodExpr) {
202 t.Helper()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected