Branch Coverage

blib/lib/Statistics/RankCorrelation.pm
Criterion Covered Total %
branch 47 56 83.9


line true false branch
24 28 1 if (ref $arg eq 'ARRAY') { }
1 0 elsif (not ref $arg) { }
25 14 14 if (not defined $self->x_data) { }
14 0 elsif (not defined $self->y_data) { }
30 1 0 defined $v ? :
35 14 0 if ($self->x_data and $self->y_data and @{$self->x_data;} and @{$self->y_data;})
42 1 13 if $self->{'sorted'}
63 14 182 if @_
69 28 102 if @_
75 28 73 if @_
81 14 4 if @_
87 14 5 if @_
93 14 32 if @_
99 14 30 if @_
119 1 13 if $x_sum2 == 0 or $y_sum2 == 0
140 15 182 if ($ties > 1) { }
158 28 0 wantarray ? :
163 0 1 unless @$u == @$v
167 0 21 unless $Statistics::RankCorrelation::a->[0] <=> $Statistics::RankCorrelation::b->[0]
189 40 56 if $m1->[$i][$j] == $m2->[$i][$j]
201 0 14 if (@$u > @$v) { }
0 14 elsif (@$u < @$v) { }
218 68 124 $u->[$i] < $u->[$j] ? :
234 108 466 if (not $x_sign && $y_sign) { }
288 178 elsif ($x_sign == $y_sign) { }
242 5 8 if (keys %{$self->x_ties;} or keys %{$self->y_ties;})
257 124 1024 if $x == 0
258 621 403 $x > 0 ? :