Branch Coverage

blib/lib/VAPID.pm
Criterion Covered Total %
branch 18 38 47.3


line true false branch
30 0 1 if (length $priv < 32)
35 0 1 if (length $pub < 65)
49 0 1 unless ($aud)
53 0 1 if (ref $aud)
59 0 1 unless ($aud_uri->host)
67 1 0 if ($expiration) { }
91 0 1 $enc ? :
109 0 2 unless ($subject)
113 0 2 if (ref $subject)
117 0 2 unless ($subject =~ /^mailto\:/)
119 0 0 unless ($uri->host)
130 0 2 unless ($pub)
134 0 2 if (ref $pub)
140 0 2 if (length $pub != 65)
150 0 2 unless ($priv)
154 0 2 if (ref $priv)
160 0 2 if (length $priv != 32)
170 0 2 unless ($expiration and $expiration =~ /^\d+$/)
176 0 2 if ($expiration >= $max)