/usr/local/lib/perl5/5.44.0/warnings/register.pm

filter: Statementstmt 0.0% 0 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 12 CC 2 SCAR 15.4
CC
2
Cov
0%
import
6.0
mkMask
2.0
CRAP 4.7
« /usr/local/lib/perl5/5.44.0/version/regex.pm ↑ Summary /usr/local/lib/perl5/site_perl/5.44.0/Moo/sification.pm »
1 package warnings::register 1.06;
2  
3 require warnings;
4  
5 # left here as cruft in case other users were using this undocumented routine
6 # -- rjbs, 2010-09-08
7 sub mkMask
8 {
9 0 ▶ my ($bit) = @_;
Subroutine mkMask: not called CC=1 SCAR=6.9
Pod undocumented
10 0 my $mask = "";
11  
12 0 vec($mask, $bit, 1) = 1;
13 0 return $mask;
14 }
15  
16 sub import
17 {
18 0 ▶ shift;
Subroutine import: not called CC=2 SCAR=17.9
19 0 my @categories = @_;
20  
21 0 my $package = caller;
22 0 warnings::register_categories($package);
23  
24 0 warnings::register_categories($package . "::$_") for @categories;
25 }
26 1;
27 __END__
« /usr/local/lib/perl5/5.44.0/version/regex.pm ↑ Summary /usr/local/lib/perl5/site_perl/5.44.0/Moo/sification.pm »