Branch Coverage

blib/lib/HTML/SimpleTemplate.pm
Criterion Covered Total %
branch 36 48 75.0


line true false branch
45 4 0 if ($$self{'FILEPATH'}) { }
47 0 4 unless open $fh, $$self{'FILEPATH'} . "/$filename"
49 0 0 unless open $fh, "$filename"
60 1 111 if (/^\#/)
68 3 108 if (/^\?\$(\S+)/)
71 0 3 unless ($ifstate[0])
77 2 1 if (${$bundle;}{$1}) { }
88 9 99 if (/^\?\((.+)\)$/)
91 1 8 unless ($ifstate[0])
102 5 3 if (eval $cond) { }
113 2 97 if (/^\?\!\$(\S+)/)
115 0 2 if (${$bundle;}{$1}) { }
126 12 85 if (/^\?else/)
128 1 11 if ($blockelse)
133 3 8 if ($ifstate[0] == 0) { }
143 0 85 if (/^\?exit/)
145 0 0 if ($ifstate[0])
152 14 71 if (/^\?end/)
154 1 13 if ($blockelse)
162 0 13 unless (defined @ifstate)
174 0 71 if (/^\&([^\)]+)\(([^\)]+)/)
195 1 70 if (/^\!(\S+)/)
197 1 0 if ($ifstate[0])
206 51 19 if ($ifstate[0])