Branch Coverage

blib/lib/Path/Maker.pm
Criterion Covered Total %
branch 20 28 71.4


line true false branch
30 13 3 if (my $data = $$self{'section'}->get_data_section($file)) { }
1 2 elsif ($$self{'template_dir'}) { }
42 0 16 if (my $e = $$self{'cache'}{$file})
46 2 14 unless ($data)
48 0 2 $$self{'template_dir'} ? :
52 1 13 if $$self{'template_header'}
56 0 14 if $$self{'use_cache'}
61 0 1 unless open my $fh, '<:utf8', $file
69 0 7 ref $_[0] ? :
83 12 12 if file_name_is_absolute($path)
95 0 2 unless CORE::chmod $mod, $path
100 6 2 if -d $dir
101 0 2 unless mkpath($dir)
113 0 8 unless open my $fh, '>:utf8', $file