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 "-")
38 3 8 if ($answer->{'status'} == 0)
44 8 0 if ($file ne '-') { }
61 8 0 if ($n) { }
74 0 8 if (defined $customN)
89 5 3 if (defined $wantJSON and $wantJSON)
128 8 22 if (not $n50 and $progressive_sum > $total_size * "0.5")
132 8 22 if (not $n75 and $progressive_sum > $total_size * "0.25")
135 8 22 if (not $n90 and $progressive_sum > $total_size * "0.1")
138 0 30 if (not $nx and defined $custom_n)
139 0 0 if $progressive_sum > $total_size * ((100 - $custom_n) / 100)
154 3 0 if ($stats->{'status'}) { }
167 1 1 if (defined $stats->{'json'}) { }