Branch Coverage

blib/lib/Dancer/Logger/File.pm
Criterion Covered Total %
branch 16 28 57.1


line true false branch
16 3 16 if (my $altpath = setting("log_path"))
22 0 15 if ($logroot and not -d $logroot and not mkdir($logroot))
27 15 1 $logroot ? :
31 7 0 if -d $expected_path and -x _ and -w _
33 0 9 unless (-w $logroot and -x _)
36 0 0 unless (-w $logroot and -x _)
49 0 18 unless $logdir
53 9 9 unless -d $logdir
57 0 18 unless ($fh = open_file(">>", $logfile))
75 0 20 unless ref $fh and $fh->opened
77 0 20 unless flock $fh, 2
79 0 20 unless seek $fh, 0, 2
81 0 20 unless $fh->print($self->format_message($level, $message))
83 0 20 unless flock $fh, 8