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 100% 6 / 6 Podpod n/a totaltotal 71.4% 40 / 56 SCAR 11.8
CC
3
Cov
69%
import
3.6
__ANON__
1.1
BEGIN
1.0
CRAP 3.3
↑ 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.002';
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 2 ▶ keyword with (List $expr, Block $block) {{{
Subroutine __ANON__: 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 2 foreach ( scalar <{$expr}> ) <{$block}>
12 2 }}}
13 2 return;
14 2 }
15 2  
16 2 1;
17  
18 2 __END__
↑ Summary