Branch Coverage

blib/lib/Algorithm/Classifier/IsolationForest/App/Command/predict.pm
Criterion Covered Total %
branch 30 46 65.2


line true false branch
54 0 4 if (not defined $opt->{'i'}) { }
0 4 elsif (not -f $opt->{'i'}) { }
0 4 elsif (not -r $opt->{'i'}) { }
62 0 4 if (not -f $opt->{'m'}) { }
0 4 elsif (not -r $opt->{'m'}) { }
68 0 2 if (defined $opt->{'o'} and not $opt->{'w'} and -e $opt->{'o'})
72 0 4 if (defined $opt->{'t'} and $opt->{'t'} <= 0) { }
0 8 elsif (defined $opt->{'t'} and $opt->{'t'} >= 1) { }
90 1 3 ref $iforest->{'mungers'} eq 'HASH' && %{$iforest->{'mungers'};} ? :
95 2 2 if (Algorithm::Classifier::IsolationForest::App::Command::pack::is_packed_file($opt->{'i'})) { }
99 0 2 if $n_feats != $iforest->{'n_features'}
112 1 1 if ($opt->{'d'})
124 0 88 if $line =~ /^\s*$/
128 2 86 if (not defined $expected_cols) { }
0 86 elsif (scalar @fields != $expected_cols) { }
130 0 2 if $expected_cols < 1
142 7 81 unless ($has_mungers)
147 0 21 unless &looks_like_number($field)
161 1 1 if ($has_mungers) { }
170 0 0 defined $munged->[$i][$col] ? :
0 243 unless &looks_like_number($munged->[$i][$col])
192 7 95 if ($opt->{'d'}) { }
199 2 2 unless (defined $opt->{'o'})