Branch Coverage

blib/lib/Algorithm/AM/DataSet.pm
Criterion Covered Total %
branch 37 40 92.5


line true false branch
60 1 49 unless (defined $opts{'cardinality'})
66 1 48 if (keys %opts)
136 219 57 if ('Algorithm::AM::DataSet::Item' eq ref $args[0]) { }
142 1 274 if ($self->cardinality != $item->cardinality)
149 270 4 if (defined $item->class)
162 47 223 unless ($self->{'class_num_index'}{$class})
197 30018 0 defined $_->class ? :
256 1 11 unless exists $opts{'path'}
258 1 10 unless exists $opts{'format'}
263 1 9 unless $path->exists
267 4 5 if ($format eq 'commas') { }
4 1 elsif ($format eq 'nocommas') { }
282 0 8 unless (defined $unknown)
289 0 8 unless ($item)
317 2 199 if $line =~ /^\s*#/
321 198 1 if $line
323 7 198 unless $line
326 1 197 unless (defined $feats)
331 4 193 if ($class eq $unknown)
337 319 1594 $_ eq $null ? :