Branch Coverage

blib/lib/Logfile/Access.pm
Criterion Covered Total %
branch 33 122 27.0


line true false branch
47 0 1 if (scalar @_ > 1)
62 0 1 if %mime_type
63 0 1 if (open IN, '/etc/httpd/conf/mime.types') { }
67 0 0 if $_ =~ /^ *\#/
73 0 0 unless $extension =~ /\w/
105 0 0 if ($row =~ m[^(\d{4})-(\d{2})-(\d{2}) @{['(\\d{2}):(\\d{2}):(\\d{2})'];} @{['(\\S+)'];} @{['(\\S+)'];} @{['(\\S+)'];} @{['([^ ]+)'];} (\S+) @{['(\\d+|\\-)'];} (\d+) (\d+) (\d+) (\d+) @{['(\\w+\\/[\\d\\.]+)'];} @{['([^"]+)'];} @{['([^"]+)'];} @{['([^"]+)'];} *$]) { }
133 2 0 if ($row =~ m(^@{['(\\S+)'];} (\S+) (\S+) \[@{['(\\d{2})\\/(\\w{3})\\/(\\d{4})'];}:@{['(\\d{2}):(\\d{2}):(\\d{2})'];} @{['([+\\-]\\d{4})'];}\] \"@{['(\\S+)'];} @{['([^ ]+)'];} @{['(\\w+\\/[\\d\\.]+)'];}\" @{['(\\d+|\\-)'];} @{['(\\d+|\\-)'];} *$) or $row =~ m(^@{['(\\S+)'];} (\S+) (\S+) \[@{['(\\d{2})\\/(\\w{3})\\/(\\d{4})'];}:@{['(\\d{2}):(\\d{2}):(\\d{2})'];} @{['([+\\-]\\d{4})'];}\] \"@{['(\\S+)'];} @{['([^ ]+)'];} @{['(\\w+\\/[\\d\\.]+)'];}\" @{['(\\d+|\\-)'];} @{['(\\d+|\\-)'];} \"?@{['([^"]+)'];}\"? \"?@{['([^"]+)'];}\"?$)) { }
178 0 0 if (@_)
188 1 0 if ($host =~ /^(\d{1,3}\.)(\d{1,3}\.){2}(\d+)(:\d+)?$/)
199 1 0 if ($host =~ /^((\d{1,3}\.){2})(\d{1,3}\.)(\d+)(:\d+)?$/)
210 1 0 if ($host =~ /^((\d{1,3}\.){3})(\d+)(:\d+)?$/)
222 4 0 if (my $host = $$self{'remote_host'})
224 2 2 if ($host =~ /\.([a-z]{2,5})$/i)
251 1 1 if $host =~ /\.\d+(:\d+)?$/
254 0 2 unless $host =~ s/^([^\.]*\.)//
267 0 0 if $host =~ /:(\d+)\b$/
274 0 7 if (@_)
282 0 2 if (@_)
290 0 2 if (@_)
298 0 2 if (@_)
309 0 0 if $mday < 1
310 0 0 if $mday > 31
312 0 0 if ($$self{'month'} =~ /^(jan|mar|may|jul|aug|oct|dec)$/i) { }
0 0 elsif ($$self{'month'} =~ /^(apr|jun|sep|nov)$/i) { }
0 0 elsif ($$self{'month'} =~ /^(feb)$/i) { }
314 0 0 if $mday > 31
318 0 0 if $mday > 30
322 0 0 if $mday > 29
332 0 2 if (@_)
345 0 0 if ($month =~ /^\d+$/)
348 0 0 if $month == 0
351 0 0 if ($month =~ /^(jan|0?1)$/i) { }
0 0 elsif ($month =~ /^(feb|0?2)$/i) { }
0 0 elsif ($month =~ /^(mar|0?3)$/i) { }
0 0 elsif ($month =~ /^(apr|0?4)$/i) { }
0 0 elsif ($month =~ /^(may|0?5)$/i) { }
0 0 elsif ($month =~ /^(jun|0?6)$/i) { }
0 0 elsif ($month =~ /^(jul|0?7)$/i) { }
0 0 elsif ($month =~ /^(aug|0?8)$/i) { }
0 0 elsif ($month =~ /^(sep|0?9)$/i) { }
0 0 elsif ($month =~ /^(oct|10)$/i) { }
0 0 elsif ($month =~ /^(nov|11)$/i) { }
0 0 elsif ($month =~ /^(dec|12)$/i) { }
405 0 2 if (@_)
424 0 0 if $year >= 38 and $year < 100
425 0 0 if $year >= 0 and $year < 38
435 0 2 if (@_)
448 0 2 if (@_)
455 0 0 if $value < 0 or $value > 23
464 0 2 if (@_)
477 0 2 if (@_)
490 0 2 if (@_)
503 0 2 if (@_)
511 0 2 if (@_)
548 2 0 if ($object =~ /\.(\w+)$/)
576 0 2 if (@_)
585 0 2 if (@_)
593 0 2 if (@_)
601 0 2 if (@_)
609 0 2 if (@_)
617 0 2 if (@_)