| blib/lib/Mojolicious/Plugin/Notifications/JSON.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 16 | 20 | 80.0 |
| line | true | false | branch |
|---|---|---|---|
| 12 | 0 | 5 | if $param->{'key'} |
| 22 | 2 | 13 | unless @$notify_array |
| 24 | 13 | 0 | if (not $json or ref $json) |
| 29 | 4 | 18 | if (ref $_->[1] and ref $_->[1] eq 'HASH' and $_->[1]{'ok'} || $_->[1]{'cancel'} || $_[1]{'confirm'}) { } |
| 36 | 1 | 3 | if ($param->{'confirm'}) { } |
| 45 | 2 | 1 | if ($param->{'ok'}) |
| 53 | 3 | 0 | if ($param->{'cancel'}) |
| 70 | 2 | 11 | if (not $json) { } |
| 1 | 10 | elsif (index(ref $json, 'ARRAY') >= 0) { } | |
| 10 | 0 | elsif (index(ref $json, 'HASH') >= 0) { } |