tlib/SetterErrorModule.pm

filter: Statementstmt 84.2% 16 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 84.0% 21 / 25 CC 1 SCAR 0.4
CC
1
Cov
84%
dont_succeed
1.2
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Lexical/Failure/Objects.pm ↑ Summary tlib/ExtrasModule.pm »
1 package
2 SetterErrorModule;
3 1 our $VERSION = '0.000001';
4  
5 1 ▶use 5.014;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use Lexical::Failure;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10  
11 sub import {
12 1 ▶ my (undef, undef, $errors) = @_;
Subroutine import: called CC=1 SCAR=0.0
13 1 ON_FAILURE($errors);
14 }
15  
16 1 our $CROAK_LINE = __FILE__ . ' line ' . (__LINE__ + 2);
17 1 ▶sub dont_succeed {
Subroutine dont_succeed: called CC=1 SCAR=2.0
Pod undocumented
18 1 ON_FAILURE('carp');
19 0  
20 0 fail "The fail should never happen";
21 0 return 'This value should never be returned';
22 }
23  
24 # Module implementation here
25  
26  
27 1 1; # Magic true value required at end of module
28  
« blib/lib/Lexical/Failure/Objects.pm ↑ Summary tlib/ExtrasModule.pm »