Branch Coverage

blib/lib/DBIx/MyParsePP/Rule.pm
Criterion Covered Total %
branch 43 54 79.6


line true false branch
44 50 0 if ($#{$rule;} > -1) { }
56 12 533 unless defined $flags
58 111 434 if ($#{$parent;} == 0 and $flags & 2) { }
308 126 elsif ($#{$parent;} == 1 and $flags & 4) { }
85 41 elsif ($flags & 8) { }
61 266 42 if ($flags & 8) { }
71 0 271 if ($flags & 1 and ref $child eq 'DBIx::MyParsePP::Rule' and $child->name eq $parent->name) { }
76 0 0 if defined $child->children
78 160 111 if defined $child
92 122 400 if $#{$rule;} == 0
97 234 365 unless defined $extract
98 78 287 if (ref $extract eq 'ARRAY') { }
105 59 341 if ($#matches == -1) { }
258 83 elsif ($#matches == 0) { }
133 0 1 if ref $idents ne 'ARRAY'
141 1 5 if ($#children == -1) { }
0 5 elsif ($#children == 0) { }
3 2 elsif ($#children == 2) { }
2 0 elsif ($#children == 4) { }
146 2 1 if ($shrinked_ident->name eq 'simple_ident_q' or $shrinked_ident->name eq 'table_wild') { }
1 0 elsif ($shrinked_ident->name eq 'table_ident') { }
164 6 0 unless (exists $tables_hash{$table->toString})
177 29 1164 if $rule->name eq $match
187 0 107 unless $_[1]->isa('DBIx::MyParsePP::Rule')
188 1 106 if $_[0]->name ne $_[1]->name
192 0 106 if @left_children != @right_children
195 1 148 unless $left_children[$i]->isEqual($right_children[$i])