Branch Coverage

blib/lib/BSD/Resource.pm
Criterion Covered Total %
branch 26 34 76.4


line true false branch
89 0 3 /^\w+_h$/ ? :
100 18 25 if ($BSD::Resource::AUTOLOAD =~ /::(_?[a-z])/)
107 0 25 if $constname eq 'DESTROY'
108 0 25 @_ ? :
110 6 19 if ($! == 0) { }
0 19 elsif ($! == $EAGAIN) { }
19 0 elsif ($! == $EINVAL) { }
597 56 0 if ($lim =~ /^RLIMIT_/)
599 56 0 if (exists $rlimits->{$lim})
603 56 0 if ($lim =~ /^\d+$/) { }
613 2 7 if ($lim =~ /^PRIO_/)
615 2 1 if (exists $prios->{$lim})
619 9 1 if ($lim =~ /^\d+$/) { }
631 19 28 if (wantarray) { }
651 7 3 if (@_)
654 4 4 if (@_ == 2) { }
1 3 elsif (@_ == 1) { }