Condition Coverage

blib/lib/Dancer/Logger/File/PerRequest.pm
Criterion Covered Total %
condition 1 23 4.3


and 3 conditions

line !l l&&!r l&&r condition
61 0 0 0 ref $fh and $fh->opened
81 0 0 0 $logroot and not -d $logroot
0 0 0 $logroot and not -d $logroot and not mkdir($logroot)
90 0 0 0 -d $expected_path and -x _
0 0 0 -d $expected_path and -x _ and -w _
92 0 0 0 -w $logroot and -x _
95 0 0 0 -w $logroot and -x _

or 2 conditions

line l !l condition
29 1 0 setting('logfile_callback') || sub { my(@d) = localtime(); my $file = sprintf('%04d%02d%02d%02d%02d%02d', $d[5] + 1900, $d[4] + 1, $d[3], $d[2], $d[1], $d[0]); return $file . '_' . $$ . '.log'; }