Branch Coverage

blib/lib/WebService/HIBP.pm
Criterion Covered Total %
branch 29 38 76.3


line true false branch
25 2 2 if ($params{'user_agent'}) { }
33 0 4 if ($params{'api_key'})
48 3 1 if (defined $self->{'last_response'})
56 2 1 if (defined $self->{'last_response'})
66 1 2 if ($response->is_success) { }
83 1 3 if ($response->is_success) { }
1 2 elsif ($response->code == 404) { }
100 0 2 if ($response->is_success) { }
0 2 elsif ($response->code == 404) { }
119 2 3 if ($parameters{'domain'})
123 3 2 if ($response->is_success) { }
141 0 2 if ($parameters{'unverified'}) { }
146 0 2 if ($parameters{'truncate'}) { }
151 0 2 if ($parameters{'domain'})
155 2 0 if (@filters)
159 0 2 if ($response->is_success) { }
0 2 elsif ($response->code == 404) { }
184 3 2 if ($response->is_success) { }
188 1 1148 if ($pwned eq $remainder)