Branch Coverage

lib/Config/Grammar/Document.pm
Criterion Covered Total %
branch 48 92 52.1


line true false branch
15 0 4 $tree->{'_mandatory'} && grep({$_ eq $var;} @{$$tree{'_mandatory'};}) ? :
19 4 0 if $tree->{$var}{'_doc'}
22 0 4 if $inherited
25 0 4 if $tree->{$var}{'_default'}
27 4 0 if $tree->{$var}{'_example'}
35 2 3 if ($tree->{'_vars'})
44 1 4 if ($tree->{'_text'})
46 0 1 if ($tree->{'_text'}{'_example'})
54 1 4 if ($tree->{'_table'})
65 2 1 if $tree->{'_table'}{$i}{'_example'}
68 2 3 if ($tree->{'_sections'})
69 1 1 if ($level > 0)
75 0 4 $tree->{'_mandatory'} && grep({$_ eq $section;} @{$$tree{'_mandatory'};}) ? :
77 1 3 $level > 0 ? :
80 0 4 if ($tree eq $tree->{$section})
85 2 2 if $tree->{$section}{'_doc'}
88 1 1 if $level > 0
107 0 11 if (scalar @start) { }
112 0 0 unless $tree->{'_mandatory'} and grep {$_ eq $section;} @{$$tree{'_mandatory'};}
113 0 0 if ($tree->{$section}{'_example'})
117 0 0 if ($complete) { }
118 0 0 $level > 0 ? :
121 0 0 $section =~ m[^/] ? :
122 0 0 $level > 0 ? :
127 0 0 if ($s =~ m[^/.+/$] and $section =~ /$s/ or $s eq $section)
129 0 0 unless $tree eq $tree->{$s}
133 0 0 unless $match
136 7 4 if ($tree->{'_vars'})
140 20 0 if ($complete) { }
143 0 20 if $mandatory
145 0 0 $mandatory ? :
147 0 0 unless $tree->{'_mandatory'} and grep {$_ eq $var;} @{$$tree{'_mandatory'};}
152 1 10 if ($tree->{'_text'} and $complete)
153 0 1 if ($tree->{'_text'}{'_example'})
160 1 10 if ($tree->{'_table'} and $complete)
167 7 4 if ($tree->{'_sections'})
170 8 0 unless ($tree->{'_mandatory'} and grep {$_ eq $section;} @{$$tree{'_mandatory'};})
172 8 0 if $complete
176 8 0 unless $tree->{'_mandatory'} and grep {$_ eq $section;} @{$$tree{'_mandatory'};}
178 1 1 if ($section =~ m[^/.+/$] and $tree->{$section}{'_example'})
179 1 0 if $complete
182 8 0 if ($complete) { }
183 3 5 $level > 0 ? :
187 0 0 $section =~ m[^/] ? :
188 0 0 $level > 0 ? :
191 8 0 unless $tree eq $tree->{$section}