tlib/Keyword/Export/Test.pm

filter: Statementstmt 70.5% 24 / 34 Branchbran 40.0% 4 / 10 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 63.4% 33 / 52 CC 5 SCAR 10.6
CC
5
Cov
63%
__ANON__
3.9
import
3.7
BEGIN
1.0
CRAP 2.9
« blib/lib/Keyword/Declare.pm ↑ Summary
1 package
2 # Hide this from the CPAN indexer...
3 Keyword::Export::Test;
4  
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Keyword::Declare;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 sub import {
10 # keyword test1 {{{ ok 1, "test1" }}}
11 1 ▶# keyword test (Int $n) {{{ ok «$n == 2», "test" }}}
Subroutine import: called CC=3 SCAR=13.2
12 1 ▶ keyword test3 (Int* @n) {{{ ok «@n && $n[0] == 3», "test3" }}}
Subroutine __ANON__: not called CC=3 SCAR=13.5
Branch: 1 branch
BranchTrueFalseTotal
if (((caller 0)[3] // "") =~ /\b(?:un)?import\Z/) 1 0 1
Condition50%1/2
(caller 0)[3] // ""
l!l
10
MC/DC0%0/1
(caller 0)[3] // ""
(caller 0)[3]
Truth table50%1/2
A
A= (caller 0)[3]
Aresult
11
00
13 1 # keyword test4 (Block) {{{ ok 1, "test4"; }}}
14 0 ▶}
Branch: 2 branches
BranchTrueFalseTotal
if ($arg =~ /(?:(?&PerlOWS)(?:(?:(?:[+-]?+(?&PPR_digit_seq)(?!\.)))))$PPR::GRAMMAR/g) 0 0 0
if ($arg =~ /(?:(?&PerlOWS)(?:(?:(?:[+-]?+(?&PPR_digit_seq)(?!\.)))))$PPR::GRAMMAR/g) 1 1 2
15 0  
16  
17 1 1; # Magic true value required at end of module
18 0 __END__
« blib/lib/Keyword/Declare.pm ↑ Summary