Condition Coverage

blib/lib/Dancer/Logger/File.pm
Criterion Covered Total %
condition 11 24 45.8


and 3 conditions

line !l l&&!r l&&r condition
22 1 15 0 $logroot and not -d $logroot
16 0 0 $logroot and not -d $logroot and not mkdir($logroot)
31 9 0 7 -d $expected_path and -x _
9 0 7 -d $expected_path and -x _ and -w _
33 0 0 9 -w $logroot and -x _
36 0 0 0 -w $logroot and -x _
75 0 0 20 ref $fh and $fh->opened

or 3 conditions

line l !l&&r !l&&!r condition
51 1 17 0 setting('log_file') || setting('environment') . '.log'