blib/lib/Keyword/With.pm

filter: Statementstmt 71.1% 32 / 45 Branchbran 50.0% 1 / 2 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 85.7% 6 / 7 Podpod n/a totaltotal 70.1% 40 / 57 CC 3 SCAR 6.3
CC
3
Cov
69%
import
3.6
__ANON__
1.1
__ANON__
1.1
CRAP 1.9
↑ Summary
1 package Keyword::With;
2 # ABSTRACT: provide new syntax to use a 'given' statement without an experimental warning
3 2 $Keyword::With::VERSION = '0.003';
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 ▶use Keyword::Declare;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 ▶sub import {
Subroutine import: called CC=3 SCAR=12.7
10 0 ▶ keyword with (List $expr, Block $block) {{{
Subroutine __ANON__: called CC=1 SCAR=0.8
Subroutine __ANON__: not called CC=1 SCAR=0.8
Branch: 1 branch
BranchTrueFalseTotal
if (((caller 0)[3] // "") =~ /\b(?:un)?import\Z/) 2 0 2
Condition50%1/2
(caller 0)[3] // ""
l!l
20
MC/DC0%0/1
(caller 0)[3] // ""
(caller 0)[3]
Truth table50%1/2
A
A= (caller 0)[3]
Aresult
11
00
11 0 foreach ( scalar <{$expr}> ) <{$block}>
12 0 }}}
13 2 return;
14 0 }
15 0  
16 0 1;
17  
18 0 __END__
↑ Summary