Condition Coverage

blib/lib/Algorithm/Classifier/IsolationForest.pm
Criterion Covered Total %
condition 46 50 92.0


and 3 conditions

line !l l&&!r l&&r condition
135 32 3 1 defined $self->{'extension_level'} and $self->{'extension_level'} < 0
138 2 1 5 $self->{'contamination'} > 0 && $self->{'contamination'} <= 0.5
27 5 3 defined $self->{'contamination'} and not $self->{'contamination'} > 0 && $self->{'contamination'} <= 0.5
201 2 1 21 ref $data eq "ARRAY" and @$data
204 1 1 19 ref $data->[0] eq "ARRAY" and @{$data->[0];}
452 1 1 3 ref $payload eq "HASH" and defined $payload->{'format'}
2 0 3 ref $payload eq "HASH" and defined $payload->{'format'} and $payload->{'format'} eq "Algorithm::Classifier::IsolationForest"
699 0 4 33 ref $self->{'trees'} eq "ARRAY" and @{$self->{'trees'};}

or 2 conditions

line l !l condition
110 12 27 $args{'mode'} // "axis"
126 22 16 $args{'n_trees'} // 100
12 26 $args{'sample_size'} // 256
454 2 1 $payload->{'params'} || {}
469 2 1 $p->{'mode'} // "axis"
3 0 $payload->{'trees'} || []
545 8667 0 rand() || 1e-12

or 3 conditions

line l !l&&r !l&&!r condition
111 30 8 1 $mode eq "axis" or $mode eq "extended"
582 16848 8290 24391 $depth >= $limit or $size <= 1
592 48854 62709 1861720 not defined $lo[$f] or $v < $lo[$f]
593 48854 63608 1860821 not defined $hi[$f] or $v > $hi[$f]