Easer.pm

filter: Statementstmt 100% 18 / 18 Branchbran 100% 2 / 2 Conditioncond 100% 3 / 3 MC/DCmcdc 100% 2 / 2 Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 30 / 30 CC 3 SCAR 6.2
CC
3
Cov
100%
import
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« Easer/ConfigHash.pm ↑ Summary
1 package App::Easer;
2 45 ▶use v5.24;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 45 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 45 ▶use experimental qw< signatures >;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 45 ▶no warnings qw< experimental::signatures >;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 45 { our $VERSION = '2.016' }
7  
8 44 ▶sub import ($package, @args) {
Subroutine import: called CC=3 SCAR=11.0
9 44 my $api = 'V1'; # default
10 44 ▶ $api = uc(shift @args) if @args && $args[0] =~ m{\A V\d+ \z}imxs;
Branch: 1 branch
BranchTrueFalseTotal
if @args and $args[0] =~ /\A V\d+ \z/imsux 37 7 44
Condition100%3/3
@args and $args[0] =~ /\A V\d+ \z/imsux
!ll&&!rl&&r
2537
MC/DC100%2/2
@args and $args[0] =~ /\A V\d+ \z/imsux
@args $args[0] =~ /\A V\d+ \z/imsux
Truth table100%3/3
A and B
A= @argsB= $args[0] =~ /\A V\d+ \z/imsux
ABresult
0X0
100
111
11 44 require "App/Easer/$api.pm";
12 44 "App::Easer::$api"->export_to_level(1, $package, @args);
13 }
14  
15 45 1;
16  
17 __END__
« Easer/ConfigHash.pm ↑ Summary