Branch Coverage

blib/lib/Proch/N50.pm
Criterion Covered Total %
branch 19 28 67.8


line true false branch
23 0 0 if (defined $customN and $customN > 100 || $customN < 0)
32 3 8 if (not -e "$file" and $file ne "-")
40 3 8 if ($answer->{'status'} == 0)
46 8 0 if ($file ne '-') { }
63 8 0 if ($n) { }
76 0 8 if (defined $customN)
91 5 3 if (defined $wantJSON and $wantJSON)
130 8 22 if (not $n50 and $progressive_sum > $total_size * "0.5")
134 8 22 if (not $n75 and $progressive_sum > $total_size * "0.25")
137 8 22 if (not $n90 and $progressive_sum > $total_size * "0.1")
140 0 30 if (not $nx and defined $custom_n)
141 0 0 if $progressive_sum > $total_size * ((100 - $custom_n) / 100)
156 3 0 if ($stats->{'status'}) { }
169 1 1 if (defined $stats->{'json'}) { }