Branch Coverage

lib/App/Followme/FormatPage.pm
Criterion Covered Total %
branch 38 42 90.4


line true false branch
47 6 72 if exists $prototype_path->{$locality}
83 22 217 if ($in) { }
84 0 22 unless $in eq 'in' and defined $locality
105 121 400 if ($token =~ /^<!--\s*section\s+(.*?)-->/) { }
119 281 elsif ($token =~ /^<!--\s*endsection\s+(.*?)-->/) { }
106 1 120 if $blockname
113 2 117 if $blockname eq '' or $blockname ne $endname
123 120 161 if ($blockname) { }
131 1 40 if $blockname
144 1 19 if (exists $blocks->{$blockname})
172 9 4 if ($prototype_checksum eq $page_checksum) { }
188 0 13 unless defined $page
191 9 4 if $self->unchanged_prototype($prototype, $page, $prototype_path)
215 7 3 if ($file)
221 7 0 if ($prototype_file)
243 3 3 unless $change
251 7 3 if ($changes or @$files == 0)
267 0 6 unless defined $prototype_path
274 15 1 if (exists $blocks->{$blockname}) { }
275 5 10 if (exists $prototype_path->{$locality}) { }
295 1 5 if (%$blocks)