Condition Coverage

lib/Config/Grammar/Document.pm
Criterion Covered Total %
condition 20 50 40.0


and 3 conditions

line !l l&&!r l&&r condition
15 4 0 0 $tree->{'_mandatory'} && grep({$_ eq $var;} @{$$tree{'_mandatory'};})
21 4 0 0 $tree->{'_inherited'} && grep({$_ eq $var;} @{$$tree{'_inherited'};})
75 4 0 0 $tree->{'_mandatory'} && grep({$_ eq $section;} @{$$tree{'_mandatory'};})
112 0 0 0 $tree->{'_mandatory'} and grep {$_ eq $section;} @{$$tree{'_mandatory'};}
127 0 0 0 $s =~ m[^/.+/$] and $section =~ /$s/
139 20 0 0 $tree->{'_mandatory'} && grep({$_ eq $var;} @{$$tree{'_mandatory'};})
147 0 0 0 $tree->{'_mandatory'} and grep {$_ eq $var;} @{$$tree{'_mandatory'};}
152 10 0 1 $tree->{'_text'} and $complete
160 10 0 1 $tree->{'_table'} and $complete
170 8 0 0 $tree->{'_mandatory'} and grep {$_ eq $section;} @{$$tree{'_mandatory'};}
176 8 0 0 $tree->{'_mandatory'} and grep {$_ eq $section;} @{$$tree{'_mandatory'};}
178 6 2 0 $section =~ m[^/.+/$] and $tree->{$section}{'_example'}

or 2 conditions

line l !l condition
45 0 1 $tree->{'_text'}{'_doc'} || 'Unspecified Text content'
56 1 0 $tree->{'_table'}{'_doc'} || 'This section can contain a table with the following structure:'
62 2 1 $tree->{'_table'}{$i}{'_doc'} || 'Unspecific Content'
142 4 16 $tree->{$var}{'_example'} || ' * no example *'

or 3 conditions

line l !l&&r !l&&!r condition
127 0 0 0 $s =~ m[^/.+/$] and $section =~ /$s/ or $s eq $section
163 2 0 1 $tree->{'_table'}{$i}{'_example'} || "C$i"