Branch Coverage

blib/lib/Net/ACME2.pm
Criterion Covered Total %
branch 16 34 47.0


line true false branch
178 0 1 unless $opts{'key'}
223 0 1 unless (ref $self)
231 0 1 unless my $url = $dir->{'meta'}
232 0 1 unless $url = $url->{'termsOfService'}
252 3 1 unless exists $opts{$name}
265 1 1 if $resp->status == 200
267 0 1 if $resp->status != 201
271 1 0 if ($struct)
273 1 1 unless exists $struct->{$name}
274 1 0 $struct->{$name} ? :
309 0 0 if $resp->status != 201
383 0 0 unless $challenge_obj
435 0 0 if (index($csr, '-----') == 0) { }
483 0 5 unless (my $new_nonce_url = $self->{'_directory'}{'newNonce'})
495 0 0 unless ($opts_hr->{'_key_id'} = $self->{'_key_id'})
538 2 0 if grep {$link_name eq $_;} ('newAccount', 'revokeCert')
542 0 2 unless my $url = $self->_get_directory->{$link_name}