Branch Coverage

blib/lib/Mojo/ACME.pm
Criterion Covered Total %
branch 17 32 53.1


line true false branch
50 0 0 unless @pending
55 0 0 if (my $err = c(@_)->first(sub { ref $_; } ))
56 0 0 unless $self->pending_challenges->size
66 1 2 unless my $challenge = $self->challenges->{$token}
70 1 1 if (my $res = $tx->success) { }
96 1 2 if @$nonces
101 1 1 if @$nonces
107 1 0 if $nonce
108 0 0 unless @$nonces
117 0 1 if (@alts)
147 0 0 unless my $challenge = c(@$challenges)->first(sub { $_->{'type'} eq 'http-01'; } )
176 1 1 $code == 409 ? :
1 2 $code == 201 ? :
208 2 0 if $tx->success and !$code || $code == $tx->res->code
210 1 0 if ($error->{'code'})
213 1 0 if (my $detail = $json->{'detail'})