Branch Coverage

blib/lib/Sort/BySpec.pm
Criterion Covered Total %
branch 34 40 85.0


line true false branch
110 311 78 if (not $ref) { }
38 40 elsif ($ref eq 'Regexp') { }
39 1 elsif ($ref eq 'CODE') { }
111 22 289 if ($which == 0 and $val eq $spec_elem)
116 29 9 if ($j < $#{$spec;} and ref $$spec[$j + 1] eq 'CODE')
119 9 29 if ($which == 1 and $val =~ /$spec_elem/)
122 23 6 if $sortsub
125 39 0 if ($j < $#{$spec;} and ref $$spec[$j + 1] eq 'CODE')
128 7 32 if ($which == 2 and &$spec_elem($val))
131 32 0 if $sortsub
140 1 7 if ($args{'_return_cmp'}) { }
144 14 0 if (@_ >= 2) { }
153 0 14 if ($xform)
158 0 14 if ($args{'reverse'})
165 8 6 if ($rank_a != $rank_b)
168 6 0 unless $sortsub
177 12 15 $Sort::BySpec::a->[3] ? :
27 46 unless $Sort::BySpec::a->[2] <=> $Sort::BySpec::b->[2]
180 5 36 $xform ? :
185 6 1 if ($args{'array'})