| line |
true |
false |
branch |
|
35
|
0 |
2 |
if (length $priv < 32) |
|
40
|
0 |
2 |
if (length $pub < 65) |
|
54
|
0 |
4 |
unless ($aud) |
|
58
|
0 |
4 |
if (ref $aud) |
|
64
|
0 |
4 |
unless ($aud_uri->host) |
|
72
|
2 |
2 |
if ($expiration) { } |
|
96
|
1 |
3 |
$enc ? : |
|
114
|
0 |
5 |
unless ($subject) |
|
118
|
0 |
5 |
if (ref $subject) |
|
122
|
0 |
5 |
unless ($subject =~ /^mailto\:/) |
|
124
|
0 |
0 |
unless ($uri->host) |
|
135
|
0 |
5 |
unless ($pub) |
|
139
|
0 |
5 |
if (ref $pub) |
|
145
|
0 |
5 |
if (length $pub != 65) |
|
155
|
0 |
5 |
unless ($priv) |
|
159
|
0 |
5 |
if (ref $priv) |
|
165
|
0 |
5 |
if (length $priv != 32) |
|
175
|
0 |
3 |
unless ($expiration and $expiration =~ /^\d+$/) |
|
181
|
0 |
3 |
if ($expiration >= $max) |
|
191
|
1 |
10 |
unless ($subscription) |
|
195
|
1 |
9 |
if (not ref $subscription or ref $subscription ne "HASH") |
|
199
|
1 |
8 |
unless ($subscription->{'endpoint'}) |
|
204
|
0 |
8 |
unless ($uri->host) |
|
208
|
1 |
7 |
unless ($subscription->{'keys'}) |
|
212
|
1 |
6 |
unless ($subscription->{'keys'}{'p256dh'}) |
|
216
|
1 |
5 |
unless ($subscription->{'keys'}{'auth'}) |
|
226
|
1 |
2 |
unless (defined $payload) |
|
306
|
2 |
0 |
if ($vapid_headers->{'Crypto-Key'}) { } |
|
309
|
1 |
1 |
if (defined $payload and length $payload) |
|
321
|
0 |
0 |
if (defined $payload and length $payload) |