Branch Coverage

lib/App/Followme/Web.pm
Criterion Covered Total %
branch 80 94 85.1


line true false branch
43 6 21 if $template_variables{$var}
54 6437 2609 $token =~ /^<[^!]/ ? :
69 1093 1100 if (web_is_tag($token))
71 483 610 if (web_same_tag($matches[$in], $tag))
73 326 157 if ($in >= @matches)
80 157 169 unless $global
84 332 1704 if $in > 0
98 626 5 if (web_is_tag($token))
114 236 441 unless web_is_tag($token)
139 165 552 if ($token =~ /^<!--\s*section\s+(\w+).*?-->/) { }
165 387 elsif ($token =~ /^<!--\s*endsection\s+(\w+).*?-->/) { }
165 222 elsif (defined $name) { }
140 0 165 if (defined $name)
146 0 165 if ($name ne $1)
156 0 57 if $name
165 0 3002 unless web_is_tag($tag)
174 1158 5783 if ($token eq '=') { }
1046 4737 elsif ($token =~ /^"/) { }
181 5783 1158 if (defined $token)
182 1623 4160 if (defined $pair[$side])
183 1623 0 if (defined $pair[0])
190 4625 1158 if $side == 0
195 3002 0 if defined $pair[0]
197 0 3002 if (@pattern < 2 or defined $pattern[1])
214 0 2371 unless ref $match
215 0 2371 unless ref $tag
218 212 2511 unless exists $tag->{$name}
220 1560 951 if $value ne "*" and $tag->{$name} ne $value
233 522 4 if ($text)
253 170 574 if ($token =~ /^<!--\s*section\s+(\w+).*?-->/) { }
170 404 elsif ($token =~ /^\s*<!--\s*endsection\s+(\w+).*?-->/) { }
170 234 elsif (defined $name) { }
254 0 170 if (defined $name)
262 0 170 if ($name ne $1)
291 0 36 $global ? :
295 502 558 if (web_is_tag($token))
297 58 444 if (web_same_tag($matches[$in], $tag))
298 58 0 if $match_count
299 35 23 if ($in >= @matches)
309 46 1014 if ($in > 0) { }
316 0 36 if @tokens
334 772 708 if (web_is_tag($token))
336 56 716 if (web_same_tag($matches[$in], $tag))
338 28 28 if ($in >= @matches)
348 56 1424 if ($in > 0)
354 1396 84 if (defined $token and defined $title)
355 28 1368 unless exists $section{$title}