Branch Coverage

blib/lib/Mojolicious/Plugin/SizeLimit.pm
Criterion Covered Total %
branch 13 32 40.6


line true false branch
44 0 1 unless $total
49 0 1 unless exists $$conf{'report_level'}
57 1 0 if $conf{'report_level'}
61 1 1 unless $check and _limits_are_exceeded($app, $count)
82 0 0 unless $shared =~ s/^(\d+)M.*/$1 * 1024 * 1024;/e or $shared =~ s/^(\d+)K.*/$1 * 1024;/e
99 0 0 if (open my $fh, '<', '/proc/self/statm') { }
114 0 0 unless eval "require $mod"
122 0 1 if ($$conf{'check_interval'} // 1) == 1
137 1 0 if ($report) { }
139 1 0 if $shared
162 0 1 if ($s = $$conf{'max_process_size'})
171 0 1 if ($s = $$conf{'min_shared_size'})
176 1 0 if ($s = $$conf{'max_unshared_size'})
186 0 1 unless $shared
1 0 if $size - $shared > 54362
190 0 0 unless my $size = -s '/proc/self/as'