Branch Coverage

blib/lib/Algorithm/AM.pm
Criterion Covered Total %
branch 28 30 93.3


line true false branch
36 1 194 if (@invalids)
41 1 193 unless (exists $args->{'training_set'})
45 1 192 if ('Algorithm::AM::DataSet' ne ref $args->{'training_set'})
124 1 194 if ($training_set->cardinality != $test_item->cardinality)
136 189 5 if ($self->exclude_nulls)
190 21669 8365 if (defined $self->{'context_to_class'}{$context}) { }
191 9834 11835 if ($self->{'context_to_class'}{$context} != $class)
203 182 12 if (exists $self->{'context_to_class'}{$nullcontext})
205 177 5 if ($self->exclude_given)
212 5 189 $self->linear ? :
222 0 194 if $Algorithm::AM::log->is_debug
226 5 189 $self->linear ? :
230 1 193 unless ($self->{'pointers'}{'grandtotal'})
232 0 1 if ($Algorithm::AM::log->is_warn)
301 247187 87 if ($skip_nulls)