Test helpers (at the end of the file)
(t *testing.T, attrs *NamedAttributeExpr)
| 128 | |
| 129 | // Test helpers (at the end of the file) |
| 130 | func 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 | |
| 137 | func withResultBases(t *testing.T, bases ...DataType) func(*MethodExpr) { |
| 138 | t.Helper() |
no outgoing calls
no test coverage detected