Branch Coverage

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


line true false branch
39 23 0 if (1 == scalar @_)
40 0 23 if (blessed($_[0]) and $_[0]->isa('Articulate::LocationSpecification')) { }
0 23 elsif (blessed($_[0]) and $_[0]->isa('Articulate::Location')) { }
3 20 elsif (ref $_[0] eq 'ARRAY') { }
0 20 elsif (not defined $_[0]) { }
20 0 elsif (not ref $_[0]) { }
0 0 elsif (ref $_[0] eq 'HASH') { }
45 0 0 if (@$path)
47 0 0 if (0 == $i % 2)
107 210 228 if $left eq '*'
108 0 228 if $right eq '*'
109 228 0 if $left eq $right
128 94 108 unless $#$self == $#$location
129 0 108 if $#$self == -1
131 0 406 unless _step_matches($$self[$i], $$location[$i])
149 2 5 unless $#$self <= $#$location
150 0 5 if $#$self == -1
152 0 16 unless _step_matches($$self[$i], $$location[$i])
170 2 5 unless $#$self >= $#$location
171 0 5 if $#$location == -1
173 0 16 unless _step_matches($$self[$i], $$location[$i])