Branch Coverage

blib/lib/Articulate/LocationSpecification.pm
Criterion Covered Total %
branch 23 42 54.7


line true false branch
46 31 0 if (1 == scalar @_)
47 0 31 if (blessed($_[0]) and $_[0]->isa('Articulate::LocationSpecification')) { }
0 31 elsif (blessed($_[0]) and $_[0]->isa('Articulate::Location')) { }
5 26 elsif (ref $_[0] eq 'ARRAY') { }
0 26 elsif (not defined $_[0]) { }
26 0 elsif (not ref $_[0]) { }
0 0 elsif (ref $_[0] eq 'HASH') { }
52 0 0 if (@$path)
54 0 0 if (0 == $i % 2)
118 167 183 if $left eq '*'
119 0 183 if $right eq '*'
120 183 0 if $left eq $right
139 73 85 unless $#$self == $#$location
140 0 85 if $#$self == -1
142 0 318 unless _step_matches($$self[$i], $$location[$i])
161 2 5 unless $#$self <= $#$location
162 0 5 if $#$self == -1
164 0 16 unless _step_matches($$self[$i], $$location[$i])
183 2 5 unless $#$self >= $#$location
184 0 5 if $#$location == -1
186 0 16 unless _step_matches($$self[$i], $$location[$i])