Branch Coverage

blib/lib/Bot/WootOff.pm
Criterion Covered Total %
branch 11 42 26.1


line true false branch
35 4 0 unless defined $$self{'http_agent'}
36 4 0 unless defined $$self{'http_url'}
39 0 4 if $$self{'spawn'}
99 0 0 if ($resp->is_success) { }
104 0 0 unless (defined $item)
107 0 0 if (open FILE, ">$save_file") { }
114 0 0 if ($$self{'http_retries_performed'} == $$self{'http_max_retries'}) { }
132 0 0 if ($last_item ne $item) { }
144 0 0 if (defined $resp->code)
145 0 0 defined $resp->message ? :
168 0 0 if ($response->is_success)
172 0 0 if (not defined $price) { }
193 0 0 if (scalar @text)
195 0 0 if (length $$self{'error'})
211 1 3 if ($html =~ m[class="fn">(.*?)(.*?)
1 2 elsif ($html =~ m[class="fn">(.*?)\$(.*?)
1 1 elsif ($html =~ m[

(.*?)

\s+

\$(.*?)

]s) { }
1 0 elsif ($html =~ m[class="title">(.*?)
230 4 0 if (defined $item)
274 0 0 if ($$msg{'body'} =~ /^!woot/)
275 0 0 if defined $$self{'last_msg'}