Branch Coverage

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


line true false branch
47 0 1 unless $total
54 0 1 unless exists $conf->{'report_level'}
62 1 0 if $conf{'report_level'}
67 1 1 unless $check and _limits_are_exceeded($c->app->log, $count)
88 0 0 unless $shared =~ s/^(\d+)M.*/$1 * 1024 * 1024;/eu or $shared =~ s/^(\d+)K.*/$1 * 1024;/eu
105 0 0 if (open my $fh, '<', '/proc/self/statm') { }
120 0 0 unless eval "require $mod"
128 0 1 if ($conf->{'check_interval'} // 1) == 1
143 1 0 if ($report) { }
145 1 0 if $shared
168 0 1 if ($s = $conf->{'max_process_size'})
177 0 1 if ($s = $conf->{'min_shared_size'})
182 1 0 if ($s = $conf->{'max_unshared_size'})
192 0 1 unless $shared
1 0 if $size - $shared > 66546
196 0 0 unless my $size = -s '/proc/self/as'