| blib/lib/Mojolicious/Plugin/WebPush.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 15 | 24 | 62.5 |
| line | true | false | branch |
|---|---|---|---|
| 33 | 0 | 2 | if $@ |
| 47 | 0 | 2 | unless $decode_ok |
| 49 | 1 | 1 | if $@ |
| 78 | 0 | 3 | if $schema ne 'vapid' |
| 89 | 0 | 3 | if length $receiver_key != 65 or not $receiver_key =~ /^\x04/u |
| 119 | 1 | 1 | if $tx->res->code == 404 or $tx->res->code == 410 |
| 120 | 0 | 1 | if $tx->res->code > 399 |
| 131 | 0 | 4 | if @config_errors |
| 134 | 0 | 4 | if $@ |
| 141 | 0 | 4 | grep((!$conf->{$_}), @AUTH_CONF) ? : |
| 159 | 0 | 11 | if ref $info ne 'HASH' |
| 162 | 5 | 6 | if @errors |