(n: number)
| 21 | const ExampleErrorFail: Effect.Effect<never, Error, never> = Effect.fail(ExampleError) |
| 22 | |
| 23 | const deepErrorEffect = (n: number): Effect.Effect<void, Cause.UnknownException> => { |
| 24 | if (n === 0) { |
| 25 | return Effect.try(() => { |
| 26 | throw ExampleError |
| 27 | }) |
| 28 | } |
| 29 | return pipe(Effect.void, Effect.zipRight(deepErrorEffect(n - 1))) |
| 30 | } |
| 31 | |
| 32 | const deepErrorFail = (n: number): Effect.Effect<never, Error> => { |
| 33 | if (n === 0) { |
no test coverage detected