Branch Coverage

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


line true false branch
248 0 13 unless $opts{'key'}
300 0 0 if $self->{'_async_ua'}
318 6 12 unless (ref $self)
329 0 18 unless my $url = $dir->{'meta'}
330 0 18 unless $url = $url->{'termsOfService'}
356 36 12 unless exists $opts{$name}
369 12 12 if $resp->status == 200
371 0 12 if $resp->status != 201
375 12 0 if ($struct)
377 12 12 unless exists $struct->{$name}
409 0 0 if $resp->status != 201
465 0 2 unless $challenge_obj
524 0 0 if (index($csr, '-----') == 0) { }
606 0 18 unless (my $new_nonce_url = $dir_hr->{'newNonce'})
621 0 0 unless ($opts_hr->{'_key_id'} = $self->{'_key_id'})
669 24 0 if grep {$link_name eq $_;} ('newAccount', 'revokeCert')
678 0 24 unless my $url = $dir_hr->{$link_name}