| 1 | # hybrid_then() validates tee parameter |
| 2 | |
| 3 | Code |
| 4 | hybrid_then(42, tee = "invalid") |
| 5 | Condition |
| 6 | Error in `hybrid_then()`: |
| 7 | ! `tee` must be `TRUE` or `FALSE` |
| 8 | |
| 9 | --- |
| 10 | |
| 11 | Code |
| 12 | hybrid_then(42, tee = 1) |
| 13 | Condition |
| 14 | Error in `hybrid_then()`: |
| 15 | ! `tee` must be `TRUE` or `FALSE` |
| 16 | |
| 17 | # hybrid_then() validates `on_success` and `on_failure` parameters |
| 18 | |
| 19 | Code |
| 20 | hybrid_then(42, on_success = "invalid") |
| 21 | Condition |
| 22 | Error in `check_hybrid_callback()`: |
| 23 | ! `on_success=` must be a function or `NULL` |
| 24 | |
| 25 | --- |
| 26 | |
| 27 | Code |
| 28 | hybrid_then(42, on_failure = "invalid") |
| 29 | Condition |
| 30 | Error in `check_hybrid_callback()`: |
| 31 | ! `on_failure=` must be a function or `NULL` |
| 32 |