Branch Coverage

blib/lib/Algorithm/Classifier/IsolationForest/App/Command/fit.pm
Criterion Covered Total %
branch 24 38 63.1


line true false branch
65 0 6 if (not defined $opt->{'i'}) { }
0 6 elsif (not -f $opt->{'i'}) { }
0 6 elsif (not -r $opt->{'i'}) { }
73 0 6 if (defined $opt->{'s'} and $opt->{'s'} <= 0)
77 0 6 if (not defined $opt->{'extended'} and defined $opt->{'e'})
81 4 2 unless ($opt->{'p'})
82 0 4 if (-e $opt->{'o'} and not $opt->{'w'})
87 0 6 if (defined $opt->{'e'} and $opt->{'e'} < 0)
91 1 5 unless ($opt->{'voting'} =~ /\A(?:mean|majority)\z/)
102 0 5 if ($opt->{'extended'})
112 0 295 if $line =~ /^\s*$/
116 5 290 if (not defined $expected_cols) { }
0 290 elsif (scalar @fields != $expected_cols) { }
118 0 5 if $expected_cols < 1
134 0 885 unless &looks_like_number($field)
148 1 4 if (defined $opt->{'t'})
150 1 0 defined $expected_cols ? :
151 0 1 unless $n_tags == $n_features
170 1 4 if ($opt->{'p'})