Branch Coverage

blib/lib/WebService/HIBP.pm
Criterion Covered Total %
branch 36 36 100.0


line true false branch
25 2 2 if ($params{'user_agent'}) { }
45 3 1 if (defined $self->{'last_response'})
53 4 1 if (defined $self->{'last_response'})
63 1 2 if ($response->is_success) { }
80 1 3 if ($response->is_success) { }
1 2 elsif ($response->code == 404) { }
97 1 3 if ($response->is_success) { }
1 2 elsif ($response->code == 404) { }
116 2 3 if ($parameters{'domain'})
120 3 2 if ($response->is_success) { }
138 1 6 if ($parameters{'unverified'})
141 1 6 if ($parameters{'truncate'})
144 1 6 if ($parameters{'domain'})
148 3 4 if (@filters)
152 4 3 if ($response->is_success) { }
1 2 elsif ($response->code == 404) { }
177 3 2 if ($response->is_success) { }
181 1 1139 if ($pwned eq $remainder)