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})
182 9 4 if ($prototype_checksum eq $page_checksum) { }
198 0 13 unless defined $page
201 9 4 if $self->unchanged_prototype($prototype, $page, $prototype_path)
225 7 3 if ($file)
231 7 0 if ($prototype_file)
253 3 3 unless $change
261 7 3 if ($changes or @$files == 0)
277 0 6 unless defined $prototype_path
284 15 1 if (exists $blocks->{$blockname}) { }
285 5 10 if (exists $prototype_path->{$locality}) { }
305 1 5 if (%$blocks)