Branch Coverage

blib/lib/Bot/Pastebot/Server/Http.pm
Criterion Covered Total %
branch 0 110 0.0


line true false branch
139 0 0 if ($request->isa('HTTP::Response'))
156 0 0 if ($url eq '/style')
166 0 0 if ($url =~ m[^/static/(.+?)\s*$])
175 0 0 if (-e $filename) { }
176 0 0 if (open FILE, "<$filename") { }
183 0 0 if ($filename =~ /\.(gif|jpe?g|png)$/i)
185 0 0 if $type eq 'jpg'
216 0 0 if ($url =~ m[/paste$])
219 0 0 if (defined $$content{'paste'} and length $$content{'paste'})
221 0 0 unless defined $channel
225 0 0 if ($$heap{'my_proxy'} and $remote_addr eq $$heap{'my_proxy'})
229 0 0 if ($forwarded)
236 0 0 if (length $channel)
238 0 0 if (is_ignored($$heap{'my_isrv'}, $channel, $remote_addr))
249 0 0 if (length $channel)
250 0 0 unless (grep(($_ eq $channel), channels($$heap{'my_isrv'})))
261 0 0 unless defined $nick
268 0 0 if (length $nick) { }
281 0 0 unless defined $summary
291 0 0 unless (length $summary)
299 0 0 unless length $summary
307 0 0 if (defined $$heap{'my_iname'}) { }
308 0 0 $$heap{'my_iname'} =~ m[/$] ? :
329 0 0 if ($error) { }
349 0 0 if ($channel and $channel =~ /^\#/) { }
350 0 0 $paste_lines == 1 ? :
370 0 0 if ($url =~ m[^/(\d+)(?:\?(.*?)\s*)?$])
374 0 0 if (defined $paste)
384 0 0 $store || exists $$query{$flag} ? :
396 0 0 if $choice and $choice eq 'text'
398 0 0 unless $tx
403 0 0 if ($tx) { }
409 0 0 $flags{$_} ? :
419 0 0 $tx ? :
422 0 0 if ($store)
449 0 0 if ($url =~ m[^/([\#\-\w\.]+)?])
453 0 0 if (defined $prefchan) { }
454 0 0 unless $prefchan =~ /^\#/
465 0 0 $_ eq $prefchan ? :
0 0 $_ eq '' ? :
476 0 0 unless $iname =~ m[/$]
563 0 0 unless (defined $static)
569 0 0 if (defined $conf{'template'}) { }
575 0 0 if $@
578 0 0 unless $template
582 0 0 unless $template = 'Bot::Pastebot::TextTemplate'->new
620 0 0 defined $conf{'iface'} ? :
631 0 0 if ($tidied)
640 0 0 if ($@) { }
650 0 0 if ($highlighted)
652 0 0 if $line_nums
662 0 0 if ($@)
674 0 0 if ($line_nums)
678 0 0 if $line_number_width < 4
700 0 0 unless ($wrapped)