Branch Coverage

blib/lib/Net/ACME2.pm
Criterion Covered Total %
branch 17 32 53.1


line true false branch
207 0 13 unless $opts{'key'}
272 6 12 unless (ref $self)
280 0 18 unless my $url = $dir->{'meta'}
281 0 18 unless $url = $url->{'termsOfService'}
305 36 12 unless exists $opts{$name}
318 12 12 if $resp->status == 200
320 0 12 if $resp->status != 201
324 12 0 if ($struct)
326 12 12 unless exists $struct->{$name}
353 0 0 if $resp->status != 201
402 0 2 unless $challenge_obj
460 0 0 if (index($csr, '-----') == 0) { }
527 0 66 unless (my $new_nonce_url = $self->{'_directory'}{'newNonce'})
539 0 0 unless ($opts_hr->{'_key_id'} = $self->{'_key_id'})
581 24 0 if grep {$link_name eq $_;} ('newAccount', 'revokeCert')
585 0 24 unless my $url = $self->_get_directory->{$link_name}