Branch Coverage

blib/lib/Net/ACME2/HTTP.pm
Criterion Covered Total %
branch 13 32 40.6


line true false branch
110 0 24 unless $self->{'_acme_key'}
134 0 24 unless (defined $resp)
137 0 0 if (eval { do { $err->get('acme')->type =~ /:badNonce\z/ } })
138 0 0 if (not $self->{'_retries_left'}) { }
0 0 elsif ($self->{'_last_nonce'}) { }
160 0 24 unless (defined $resp)
184 0 0 if $nonce
198 0 54 unless (eval { do { $resp = $self->_ua_request($type, @args); 1 } })
201 0 0 if (eval { do { $exc->isa('Net::ACME2::X::HTTP::Protocol') } })
213 0 0 if ($acme_error)
247 0 36 unless ($self->{'_last_nonce'} = $resp->header($_NONCE_HEADER))
257 0 12 unless (my $url = $self->{'_nonce_url'})
276 4 8 if ($key_type eq 'rsa') { }
8 0 elsif ($key_type eq 'ecdsa') { }
290 4 8 unless ($class->can('new'))
300 12 12 unless $self->{'_last_nonce'}