Condition Coverage

blib/lib/Algorithm/Classifier/IsolationForest/App/Command/streamd.pm
Criterion Covered Total %
condition 25 80 31.2


and 3 conditions

line !l l&&!r l&&r condition
208 3 3 3 defined $opt->{'set'} and not $opt->{'set'} =~ /\A[A-Za-z0-9+\-@_]+\z/
218 6 0 0 defined $opt->{'keep'} and $opt->{'keep'} < 1
222 6 0 0 defined $opt->{'threshold'} and $opt->{'threshold'} <= 0 || $opt->{'threshold'} >= 1
226 6 0 0 defined $opt->{'growth'} and not $opt->{'growth'} =~ /\A(?:adaptive|fixed)\z/
230 6 0 0 defined $opt->{'socket_mode'} and not $opt->{'socket_mode'} =~ /\A0?[0-7]{3}\z/
318 0 0 0 defined $old and $old =~ /\A\d+\z/
0 0 0 defined $old and $old =~ /\A\d+\z/ and kill(0, $old) || $!{'EPERM'}
539 6 0 0 defined $OIF->{'contamination'} and $OIF->window_count
603 56 0 0 length $c->{'inbuf'} > 16777216 and not $c->{'inbuf'} =~ /\n/
783 190 0 0 ref $OIF->{'mungers'} eq "HASH" and %{$OIF->{'mungers'};}

or 2 conditions

line l !l condition
649 1 0 $err || 'wrong type'

or 3 conditions

line l !l&&r !l&&!r condition
222 0 0 0 $opt->{'threshold'} <= 0 || $opt->{'threshold'} >= 1
250 0 0 1 defined $opt->{'t'} or defined $opt->{'mungers'}
318 0 0 0 kill(0, $old) || $!{'EPERM'}
445 0 4 104 $SAVE_NOW or time >= $next_save
446 1 0 3 $DIRTY or $SAVE_NOW
597 0 0 0 $!{'EAGAIN'} or $!{'EWOULDBLOCK'}
0 0 0 $!{'EAGAIN'} or $!{'EWOULDBLOCK'} or $!{'EINTR'}
624 0 0 0 $!{'EAGAIN'} or $!{'EWOULDBLOCK'}
0 0 0 $!{'EAGAIN'} or $!{'EWOULDBLOCK'} or $!{'EINTR'}
647 1 0 55 $@ or ref $msg ne "HASH"
661 0 0 54 not defined $mode or ref $mode
0 1 53 not defined $mode or ref $mode or not $mode =~ /\A(?:prequential|learn|score)\z/
670 0 0 27 ref $rows ne "ARRAY" or not @$rows
703 0 0 26 not defined $cmd or ref $cmd
710 0 0 1 not defined $mode or ref $mode
0 0 1 not defined $mode or ref $mode or not $mode =~ /\A(?:prequential|learn|score)\z/