Branch Coverage

blib/lib/Data/Sah/Normalize.pm
Criterion Covered Total %
branch 52 82 63.4


line true false branch
46 1 4 if ($c =~ s/=\z//)
50 0 1 if exists $clset0->{$c}
58 1 4 if (not $expr and $c =~ s/\A!(?=.)//) { }
1 3 elsif (not $expr and $c =~ s/(?<=.)\|\z//) { }
1 2 elsif (not $expr and $c =~ s/(?<=.)\&\z//) { }
1 1 elsif (not $expr and $c =~ /\A([^.]+)(?:\.(.+))?\((\w+)\)\z/) { }
0 1 elsif (not $c =~ /$clause_re/ || $c =~ /$clause_attr_on_empty_clause_re/) { }
59 0 1 unless $c =~ /$clause_name_re/
63 0 1 unless $c =~ /$clause_name_re/
67 0 1 unless $c =~ /$clause_name_re/
72 0 1 unless $c2 =~ /$clause_name_re/ and !defined($a) || $a =~ /$attr_re/
76 0 1 defined $a ? :
84 1 4 if ($sc eq '!') { }
1 3 elsif ($sc eq '&') { }
1 2 elsif ($sc eq '|') { }
1 1 elsif ($sc eq '(LANG)') { }
86 0 1 if exists $clset0->{$c}
88 0 1 if exists $$clset0{"$c|"}
90 0 1 if exists $$clset0{"$c&"}
95 0 1 if exists $clset0->{$c}
97 0 1 if exists $$clset0{"$c|"}
98 0 1 unless ref $v eq 'ARRAY'
104 0 1 if exists $clset0->{$c}
105 0 1 unless ref $v eq 'ARRAY'
111 0 1 if exists $clset0->{$cn}
118 0 3 if $opts->{'has_req'}
139 0 4 if (not defined $s) { }
2 2 elsif (not $ref) { }
2 0 elsif ($ref eq 'ARRAY') { }
146 0 2 unless $s =~ /$type_re/
148 1 1 $has_req ? :
154 0 2 if (not defined $t) { }
0 2 elsif (ref $t) { }
159 0 2 unless $t =~ /$type_re/
164 2 0 if (defined $s->[1]) { }
165 2 0 if (ref $s->[1] eq 'HASH') { }
168 0 2 if @$s > 3
172 0 0 unless @$s % 2
183 2 0 if (defined $extras) { }
184 0 2 unless ref $extras eq 'HASH'
186 1 1 if keys %$extras