(n: number)
| 36 | } |
| 37 | |
| 38 | const causesN = (n: number): fc.Arbitrary<Cause.Cause<E>> => { |
| 39 | if (n === 1) { |
| 40 | return fc.oneof(empty, failure, die, interrupt) |
| 41 | } |
| 42 | if (n === 2) { |
| 43 | return annotated(n) |
| 44 | } |
| 45 | return fc.oneof(annotated(n), sequential(n), parallel(n)) |
| 46 | } |
| 47 | |
| 48 | return causesN(n) |
| 49 | } |
no test coverage detected