(t *testing.T, bases ...DataType)
| 199 | } |
| 200 | |
| 201 | func withPayloadBases(t *testing.T, bases ...DataType) func(*MethodExpr) { |
| 202 | t.Helper() |
| 203 | return func(m *MethodExpr) { |
| 204 | if m.Payload == nil { |
| 205 | m.Payload = &AttributeExpr{Type: &Object{}} |
| 206 | } |
| 207 | m.Payload.Bases = bases |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | func withResult(t *testing.T, attrs *NamedAttributeExpr) func(*MethodExpr) { |
| 212 | t.Helper() |
no outgoing calls
no test coverage detected