Branch Coverage

blib/lib/Algorithm/Classifier/IsolationForest/App/Command/pack.pm
Criterion Covered Total %
branch 19 40 47.5


line true false branch
32 0 2 unless open my $fh, "<:raw", $path
34 0 2 unless read($fh, $hdr, 20) == 20
37 0 2 unless $magic eq "IFPKD\0\0\0"
39 0 2 unless $version == 1
41 0 2 unless $reserved == 0
45 0 0 defined $bytes ? :
0 2 unless read($fh, $bytes, $want) == $want
65 0 3 unless open my $fh, "<:raw", $path
113 0 1 if (not defined $opt->{'i'}) { }
0 1 elsif (not -f $opt->{'i'}) { }
0 1 elsif (not -r $opt->{'i'}) { }
121 0 1 if (not defined $opt->{'o'}) { }
0 2 elsif (-e $opt->{'o'} and not $opt->{'w'}) { }
127 0 1 if (not -f $opt->{'m'}) { }
0 1 elsif (not -r $opt->{'m'}) { }
139 0 1 unless $Algorithm::Classifier::IsolationForest::HAS_C
150 0 7 if $row =~ /^\s*$/
152 0 7 unless scalar @f == $nf
155 0 21 unless &looks_like_number($v)
160 0 1 unless @data