Branch Coverage

blib/lib/HTTP/Request/Webpush.pm
Criterion Covered Total %
branch 13 26 50.0


line true false branch
64 3 0 if (ref $subscription eq 'HASH') { }
70 0 3 unless $agent
71 0 3 unless exists $agent->{'endpoint'}
82 3 0 if (scalar @_ == 2) { }
0 0 elsif (scalar @_ == 1 and ref $_ eq 'Crypt::PK::ECC') { }
119 0 3 unless $enc eq 'aes128gcm'
122 0 3 unless $self->url
123 0 3 unless $self->{'app-key'}
124 0 3 unless $self->{'subscription'}{'keys'}{'p256dh'} and $self->{'subscription'}{'keys'}{'auth'}
125 0 3 unless length $self->content <= 3992
134 0 3 if $self->{'subject'}
145 1 2 if ($self->{'ecc'}) { }
219 0 18 if exists $opts{$_}