blib/lib/junk.pm

filter: Statementstmt 100% 28 / 28 Branchbran 80.0% 8 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 95.3% 41 / 43 CC 7 SCAR 15.8
CC
7
Cov
95%
import
7.0
BEGIN
1.0
BEGIN
1.0
CRAP 4.8
↑ Summary
1 package junk;
2 2 our $VERSION = '0.004';
3 2 our $AUTHORITY = 'cpan:TOBYINK';
4 2 ▶use strict; use Carp; use MIME::Base64;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶sub import{my$class=shift or return$=;if(!@_){strict->unimport,return
Subroutine import: called CC=7 SCAR=19.5
Branch: 2 branches
BranchTrueFalseTotal
my $class = shift() or return $= 2 2 4
unless (@_) 1 1 2
6 1 }my@A=@_;my$caller=caller;foreach my$x(@A){$x=~s{_D\d}{$1}g;$x=~s{_P}
7 1 ▶{+}g;$x=~s{_S}{/}g;$x.='='while(length$x)%3;croak"invalid base64: $x"
Branch: 2 branches
BranchTrueFalseTotal
length($x) % 3 and do { $x .= '=' } 2 1 3
if $x =~ m[[^A-Za-z0-9\+\/\=]] 0 1 1
8 1 if$x=~m~[^A-Za-z0-9\+\/\=]~;my$o;my$eval=join q..,qq, package $caller
9 1 ▶;,,decode_base64($x);warn"$eval\n"if$ENV{PERL_JUNK_DEBUG};eval$eval}}
Branch: 1 branch
BranchTrueFalseTotal
if $ENV{"PERL_JUNK_DEBUG"} 0 1 1
10 1 ▶sub unimport{strict->import(qw,vars subs,)}import
Subroutine unimport: called CC=1 SCAR=0.0
11  
12 __END__
↑ Summary