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

Function withReadPayload

expr/interceptor_test.go:157–162  ·  view source on GitHub ↗

Helper functions need to be updated to handle empty attributes properly

(t *testing.T, attrs *NamedAttributeExpr)

Source from the content-addressed store, hash-verified

155
156// Helper functions need to be updated to handle empty attributes properly
157func withReadPayload(t *testing.T, attrs *NamedAttributeExpr) func(*InterceptorExpr) {
158 t.Helper()
159 return func(i *InterceptorExpr) {
160 i.ReadPayload = &AttributeExpr{Type: &Object{attrs}}
161 }
162}
163
164func withReadResult(t *testing.T, attrs *NamedAttributeExpr) func(*InterceptorExpr) {
165 t.Helper()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected