Branch Coverage

blib/lib/Mojo/ACME.pm
Criterion Covered Total %
branch 18 34 52.9


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 0 3 if ($code == 400)
181 1 1 $code == 409 ? :
1 2 $code == 201 ? :
213 2 0 if $tx->success and !$code || $code == $tx->res->code
215 1 0 if ($error->{'code'})
218 1 0 if (my $detail = $json->{'detail'})