Branch Coverage

blib/lib/Algorithm/Classifier/IsolationForest/App/Command/predict.pm
Criterion Covered Total %
branch 23 36 63.8


line true false branch
54 0 3 if (not defined $opt->{'i'}) { }
0 3 elsif (not -f $opt->{'i'}) { }
0 3 elsif (not -r $opt->{'i'}) { }
62 0 3 if (not -f $opt->{'m'}) { }
0 3 elsif (not -r $opt->{'m'}) { }
68 0 2 if (defined $opt->{'o'} and not $opt->{'w'} and -e $opt->{'o'})
72 0 3 if (defined $opt->{'t'} and $opt->{'t'} <= 0) { }
0 6 elsif (defined $opt->{'t'} and $opt->{'t'} >= 1) { }
89 2 1 if (Algorithm::Classifier::IsolationForest::App::Command::pack::is_packed_file($opt->{'i'})) { }
93 0 2 if $n_feats != $iforest->{'n_features'}
106 1 1 if ($opt->{'d'})
118 0 7 if $line =~ /^\s*$/
122 1 6 if (not defined $expected_cols) { }
0 6 elsif (scalar @fields != $expected_cols) { }
124 0 1 if $expected_cols < 1
140 0 21 unless &looks_like_number($field)
164 7 14 if ($opt->{'d'}) { }
171 1 2 unless (defined $opt->{'o'})