Branch Coverage

blib/lib/Algorithm/AM/Result.pm
Criterion Covered Total %
branch 46 50 92.0


line true false branch
108 1 1 $self->exclude_nulls ? :
1 1 $self->test_in_train ? :
1 1 $self->given_excluded ? :
145 204 355 unless $class_score = $sum->[$class_index]
153 274 81 if ($cmp > 0) { }
2 79 elsif ($cmp == 0) { }
165 191 2 if (my $expected = $self->test_item->class)
166 178 13 if (exists $scores{$expected} and bigcmp($scores{$expected}, $max) == 0) { }
168 2 176 if (@winners > 1) { }
177 2 191 if (@winners > 1)
231 3 1 if (defined(my $expected = $self->test_item->class)) { }
234 1 2 if ($result eq 'correct') { }
1 1 elsif ($result eq 'tie') { }
250 3 0 unless (exists $self->{'_analogical_set'})
300 3 8 unless exists $self->{'itemcontextchainhead'}{$context}
320 3 1 unless ($self->{'_gang_effects'})
375 29 29 length $_ ? :
389 4 8 if ($print_list)
416 1 2 if ($print_list)
458 29 29 length $_ ? :
465 8 2 if (my $class_index = $self->{'context_to_class'}{$context}) { }
522 0 10 unless bigcmp($Algorithm::AM::Result::b->{'score'}, $Algorithm::AM::Result::a->{'score'})
541 46 0 if ($exclude_nulls)
544 22 24 if $partial_context & 1
564 0 7 unless ('ARRAY' eq ref $rows and 'ARRAY' eq ref $rows->[0] and @$headers == @{$rows->[0];})