Branch Coverage

blib/lib/App/Sysadmin/Log/Simple/File.pm
Criterion Covered Total %
branch 12 24 50.0


line true false branch
37 0 2 unless $logfile->is_file
40 0 2 unless $ENV{'App::Sysadmin::Log::Simple::File under test'}
42 0 2 if $$self{'view_preamble'}
54 0 2 unless $$self{'do_file'}
56 0 2 unless $$self{'logdir'}->is_dir
63 2 0 unless $dir->is_dir
67 2 0 unless ($logfile->is_file)
95 0 3 if defined $$self{'index_preamble'}
101 2 0 if (m[ (?\d{4}) / (?\d{1,2}) / (?\d{1,2}) ]x) { }
128 2 0 if ($year != $lastyear)
134 2 0 if ($month != $lastmonth)
138 2 0 if ($year == $lastyear and $month == $lastmonth)