Branch Coverage

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


line true false branch
26 28 1 if (ref $arg eq 'ARRAY') { }
1 0 elsif (not ref $arg) { }
27 14 14 if (not defined $self->x_data) { }
14 0 elsif (not defined $self->y_data) { }
32 1 0 defined $v ? :
37 14 0 if ($self->x_data and $self->y_data and @{$self->x_data;} and @{$self->y_data;})
44 1 13 if $self->{'sorted'}
65 14 182 if @_
71 28 102 if @_
77 28 73 if @_
83 14 4 if @_
89 14 5 if @_
95 14 32 if @_
101 14 30 if @_
121 1 13 if $x_sum2 == 0 or $y_sum2 == 0
142 15 182 if ($ties > 1) { }
160 28 0 wantarray ? :
165 0 1 unless @$u == @$v
169 0 21 unless $Statistics::RankCorrelation::a->[0] <=> $Statistics::RankCorrelation::b->[0]
191 40 56 if $m1->[$i][$j] == $m2->[$i][$j]
203 0 14 if (@$u > @$v) { }
0 14 elsif (@$u < @$v) { }
220 68 124 $u->[$i] < $u->[$j] ? :
236 108 466 if (not $x_sign && $y_sign) { }
288 178 elsif ($x_sign == $y_sign) { }
244 5 8 if (keys %{$self->x_ties;} or keys %{$self->y_ties;})
259 124 1024 if $x == 0
260 621 403 $x > 0 ? :