Branch Coverage

blib/lib/Text/MicroTemplate/File.pm
Criterion Covered Total %
branch 22 28 78.5


line true false branch
16 6 1 unless (defined $$self{'open_layer'})
19 6 1 unless (ref $$self{'include_path'})
29 0 1 if @_
35 0 1 if @_
42 1 1 if @_
50 1 25 if ($$self{'use_cache'} == 2)
51 1 0 if (my $e = $$self{'cache'}{$file})
57 1 24 if ('File::Spec'->file_name_is_absolute($file)) { }
65 24 0 if @st = stat $filepath
69 0 25 unless @st
73 3 22 if (my $e = $$self{'cache'}{$file})
74 2 1 if $st[9] == $$e[0]
79 0 23 unless open my $fh, "<$$self{'open_layer'}", $filepath
86 2 21 if $$self{'use_cache'}