Branch Coverage

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


line true false branch
190 0 7 unless $opts{'key'}
234 0 6 unless (ref $self)
242 0 6 unless my $url = $dir->{'meta'}
243 0 6 unless $url = $url->{'termsOfService'}
263 18 6 unless exists $opts{$name}
276 6 6 if $resp->status == 200
278 0 6 if $resp->status != 201
282 6 0 if ($struct)
284 6 6 unless exists $struct->{$name}
320 0 0 if $resp->status != 201
394 0 2 unless $challenge_obj
446 0 0 if (index($csr, '-----') == 0) { }
494 0 30 unless (my $new_nonce_url = $self->{'_directory'}{'newNonce'})
506 0 0 unless ($opts_hr->{'_key_id'} = $self->{'_key_id'})
548 12 0 if grep {$link_name eq $_;} ('newAccount', 'revokeCert')
552 0 12 unless my $url = $self->_get_directory->{$link_name}