Branch Coverage

blib/lib/Net/ACME2/HTTP.pm
Criterion Covered Total %
branch 12 24 50.0


line true false branch
40 0 7 unless $opts{'key'}
102 0 12 unless $self->{'_acme_key'}
140 0 24 if (ref $@ or $@)
143 0 0 if (eval { do { $exc->isa('Net::ACME2::X::HTTP::Protocol') } })
148 0 0 if $nonce
158 0 0 if ($acme_error)
192 0 18 unless ($self->{'_last_nonce'} = $resp->header($_NONCE_HEADER))
202 0 6 unless (my $url = $self->{'_nonce_url'})
216 6 6 unless $self->{'_last_nonce'}
221 2 4 if ($self->{'_acme_key'}->isa('Crypt::Perl::RSA::PrivateKey')) { }
4 0 elsif ($self->{'_acme_key'}->isa('Crypt::Perl::ECDSA::PrivateKey')) { }
235 2 4 unless ($class->can('new'))