Branch Coverage

blib/lib/Algorithm/Classifier/IsolationForest/App/Command/fit.pm
Criterion Covered Total %
branch 17 36 47.2


line true false branch
59 0 1 if (not defined $opt->{'i'}) { }
0 1 elsif (not -f $opt->{'i'}) { }
0 1 elsif (not -r $opt->{'i'}) { }
67 0 1 if (defined $opt->{'s'} and $opt->{'s'} <= 0)
71 0 1 if (not defined $opt->{'extended'} and defined $opt->{'e'})
75 1 0 unless ($opt->{'p'})
76 0 1 if (-e $opt->{'o'} and not $opt->{'w'})
81 0 1 if (defined $opt->{'e'} and $opt->{'e'} < 0)
92 0 1 if ($opt->{'extended'})
102 0 53 if $line =~ /^\s*$/
106 1 52 if (not defined $expected_cols) { }
0 52 elsif (scalar @fields != $expected_cols) { }
108 0 1 if $expected_cols < 1
124 0 159 unless &looks_like_number($field)
138 0 1 if (defined $opt->{'t'})
140 0 0 defined $expected_cols ? :
141 0 0 unless $n_tags == $n_features
159 0 1 if ($opt->{'p'})