Branch Coverage

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


line true false branch
40 0 13 unless $opts{'key'}
102 0 24 unless $self->{'_acme_key'}
140 0 48 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 36 unless ($self->{'_last_nonce'} = $resp->header($_NONCE_HEADER))
202 0 12 unless (my $url = $self->{'_nonce_url'})
216 12 12 unless $self->{'_last_nonce'}
223 4 8 if ($key_type eq 'rsa') { }
8 0 elsif ($key_type eq 'ecdsa') { }
237 4 8 unless ($class->can('new'))