Branch Coverage

blib/lib/Net/ACME2.pm
Criterion Covered Total %
branch 16 32 50.0


line true false branch
183 0 7 unless $opts{'key'}
227 0 6 unless (ref $self)
235 0 6 unless my $url = $dir->{'meta'}
236 0 6 unless $url = $url->{'termsOfService'}
256 18 6 unless exists $opts{$name}
269 6 6 if $resp->status == 200
271 0 6 if $resp->status != 201
275 6 0 if ($struct)
277 6 6 unless exists $struct->{$name}
313 0 0 if $resp->status != 201
387 0 2 unless $challenge_obj
439 0 0 if (index($csr, '-----') == 0) { }
487 0 30 unless (my $new_nonce_url = $self->{'_directory'}{'newNonce'})
499 0 0 unless ($opts_hr->{'_key_id'} = $self->{'_key_id'})
541 12 0 if grep {$link_name eq $_;} ('newAccount', 'revokeCert')
545 0 12 unless my $url = $self->_get_directory->{$link_name}