blib/lib/Text/MicroMason/CatchErrors.pm

filter: Statementstmt 100% 15 / 15 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 2 / 2 totaltotal 96.0% 24 / 25 CC 3 SCAR 5.1
CC
3
Cov
95%
compile
2.0
execute
2.0
BEGIN
1.0
CRAP 1.7
« blib/lib/Text/MicroMason/Sprintf.pm ↑ Summary blib/lib/Text/MicroMason/Functions.pm »
1 package Text::MicroMason::CatchErrors;
2  
3 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 7 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 ######################################################################
7  
8 # sub defaults {
9 # (shift)->NEXT('assembler_rules'), error_string => 1
10 # }
11  
12 37 ▶sub compile {
Subroutine compile: called CC=2 SCAR=7.0
Pod documented
13 37 my $result = eval { local $SIG{__DIE__}; (shift)->NEXT('compile', @_) };
14 37 ▶ wantarray ? ($result, $@) : $result;
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 0 37 37
15 }
16  
17 31 ▶sub execute {
Subroutine execute: called CC=2 SCAR=6.9
Pod documented
18 31 my $result = eval { local $SIG{__DIE__}; (shift)->NEXT('execute', @_) };
19 31 ▶ wantarray ? ($result, $@) : $result;
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 11 20 31
20 }
21  
22 ######################################################################
23  
24 7 1;
25  
26 __END__
« blib/lib/Text/MicroMason/Sprintf.pm ↑ Summary blib/lib/Text/MicroMason/Functions.pm »