Branch Coverage

blib/lib/Algorithm/Classifier/IsolationForest/App/Command/set_voting.pm
Criterion Covered Total %
branch 24 36 66.6


line true false branch
57 0 4 if (not -f $opt->{'m'}) { }
0 4 elsif (not -r $opt->{'m'}) { }
63 0 4 if (not defined $opt->{'voting'}) { }
1 3 elsif (not $opt->{'voting'} =~ /\A(?:mean|majority)\z/) { }
69 1 2 if (defined $opt->{'i'})
70 0 1 if (not -f $opt->{'i'}) { }
0 1 elsif (not -r $opt->{'i'}) { }
77 0 0 if (defined $opt->{'o'} and not $opt->{'w'} and -e $opt->{'o'})
94 1 2 if ($changing and defined $iforest->{'contamination'} and not defined $opt->{'i'})
102 1 1 if (defined $opt->{'i'})
107 0 63 if $line =~ /^\s*$/
111 1 62 if (not defined $expected_cols) { }
0 62 elsif (scalar @fields != $expected_cols) { }
113 0 1 if $expected_cols < 1
129 0 189 unless &looks_like_number($field)
146 1 1 @data ? :
150 1 1 if ($opt->{'p'})
156 0 1 defined $opt->{'o'} ? :