Helper functions need to be updated to handle empty attributes properly
(t *testing.T, attrs *NamedAttributeExpr)
| 155 | |
| 156 | // Helper functions need to be updated to handle empty attributes properly |
| 157 | func 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 | |
| 164 | func withReadResult(t *testing.T, attrs *NamedAttributeExpr) func(*InterceptorExpr) { |
| 165 | t.Helper() |
no outgoing calls
no test coverage detected