Branch Coverage

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


line true false branch
186 0 13 unless $opts{'key'}
230 0 12 unless (ref $self)
238 0 12 unless my $url = $dir->{'meta'}
239 0 12 unless $url = $url->{'termsOfService'}
261 36 12 unless exists $opts{$name}
274 12 12 if $resp->status == 200
276 0 12 if $resp->status != 201
280 12 0 if ($struct)
282 12 12 unless exists $struct->{$name}
307 0 0 if $resp->status != 201
352 0 2 unless $challenge_obj
404 0 0 if (index($csr, '-----') == 0) { }
467 0 60 unless (my $new_nonce_url = $self->{'_directory'}{'newNonce'})
479 0 0 unless ($opts_hr->{'_key_id'} = $self->{'_key_id'})
521 24 0 if grep {$link_name eq $_;} ('newAccount', 'revokeCert')
525 0 24 unless my $url = $self->_get_directory->{$link_name}