Branch Coverage

blib/lib/Net/ACME2.pm
Criterion Covered Total %
branch 17 34 50.0


line true false branch
176 0 2 unless $opts{'key'}
221 0 1 unless (ref $self)
229 0 1 unless my $url = $dir->{'meta'}
230 0 1 unless $url = $url->{'termsOfService'}
250 3 1 unless exists $opts{$name}
263 1 1 if $resp->status == 200
265 0 1 if $resp->status != 201
269 1 0 if ($struct)
271 1 1 unless exists $struct->{$name}
272 1 0 $struct->{$name} ? :
307 0 0 if $resp->status != 201
381 0 2 unless $challenge_obj
433 0 0 if (index($csr, '-----') == 0) { }
481 0 5 unless (my $new_nonce_url = $self->{'_directory'}{'newNonce'})
493 0 0 unless ($opts_hr->{'_key_id'} = $self->{'_key_id'})
536 2 0 if grep {$link_name eq $_;} ('newAccount', 'revokeCert')
540 0 2 unless my $url = $self->_get_directory->{$link_name}