| blib/lib/Promises6/Resolver.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 28 | 38 | 73.6 |
| line | true | false | branch |
|---|---|---|---|
| 33 | 0 | 231 | unless @_ <= 3 |
| 0 | 231 | unless @_ >= 3 | |
| 36 | 2 | 212 | if $val and &Scalar::Util::blessed($val) and $val eq $deferred |
| 39 | 22 | 207 | if is_promise($val) |
| 40 | 38 | 169 | if is_thenable($val) |
| 44 | 0 | 22 | unless @_ <= 3 |
| 0 | 22 | unless @_ >= 3 | |
| 47 | 3 | 19 | if $xd == $deferred |
| 49 | 13 | 6 | if $xd->state != -1 |
| 55 | 0 | 38 | unless @_ <= 3 |
| 0 | 38 | unless @_ >= 3 | |
| 62 | 0 | 30 | unless @_ <= 1 |
| 0 | 30 | unless @_ >= 1 | |
| 63 | 2 | 28 | if $was_called++ |
| 64 | 5 | 23 | if $$registered{$v}++ |
| 69 | 0 | 11 | unless @_ <= 1 |
| 0 | 11 | unless @_ >= 1 | |
| 70 | 2 | 9 | if $was_called++ |
| 81 | 1 | 37 | if $err and not $was_called |