Branch Coverage

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


line true false branch
81 0 3 /^\w+_h$/ ? :
92 18 25 if ($BSD::Resource::AUTOLOAD =~ /::(_?[a-z])/)
99 0 25 if $constname eq 'DESTROY'
100 0 25 @_ ? :
102 6 19 if ($! == 0) { }
0 19 elsif ($! == $EAGAIN) { }
19 0 elsif ($! == $EINVAL) { }
582 56 0 if ($lim =~ /^RLIMIT_/)
584 56 0 if (exists $rlimits->{$lim})
588 56 0 if ($lim =~ /^\d+$/) { }
598 2 7 if ($lim =~ /^PRIO_/)
600 2 1 if (exists $prios->{$lim})
604 9 1 if ($lim =~ /^\d+$/) { }
616 19 28 if (wantarray) { }
636 7 3 if (@_)
639 4 4 if (@_ == 2) { }
1 3 elsif (@_ == 1) { }