Branch Coverage

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


line true false branch
17 3 16 if (my $altpath = setting("log_path"))
23 0 15 if ($logroot and not -d $logroot and not mkdir($logroot))
28 15 1 $logroot ? :
32 7 0 if -d $expected_path and -x _ and -w _
34 0 9 unless (-w $logroot and -x _)
37 0 0 unless (-w $logroot and -x _)
50 0 18 unless $logdir
54 9 9 unless -d $logdir
58 0 18 unless ($fh = open_file(">>", $logfile))
76 0 20 unless ref $fh and $fh->opened
78 0 20 unless flock $fh, 2
80 0 20 unless seek $fh, 0, 2
82 0 20 unless $fh->print($self->format_message($level, $message))
84 0 20 unless flock $fh, 8