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

Function withWritePayload

expr/interceptor_test.go:130–135  ·  view source on GitHub ↗

Test helpers (at the end of the file)

(t *testing.T, attrs *NamedAttributeExpr)

Source from the content-addressed store, hash-verified

128
129// Test helpers (at the end of the file)
130func withWritePayload(t *testing.T, attrs *NamedAttributeExpr) func(*InterceptorExpr) {
131 t.Helper()
132 return func(i *InterceptorExpr) {
133 i.WritePayload = &AttributeExpr{Type: &Object{attrs}}
134 }
135}
136
137func withResultBases(t *testing.T, bases ...DataType) func(*MethodExpr) {
138 t.Helper()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected