MetaPOD/Exception/Decode/Data.pm

filter: Statementstmt 94.7% 18 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 91.6% 22 / 24 CC 1 SCAR 1.8
CC
1
Cov
95%
_build_message
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« MetaPOD/Assembler.pm ↑ Summary MetaPOD.pm »
1 1 ▶use 5.006; # our
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package MetaPOD::Exception::Decode::Data;
6  
7 1 our $VERSION = 'v0.4.0';
8  
9 # ABSTRACT: Failures with decoding source data
10  
11 1 our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
12  
13 1 ▶use Moo qw( has extends );
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27 1 extends 'MetaPOD::Exception';
28  
29  
30  
31  
32  
33  
34  
35 1 has 'data' => ( is => ro =>, required => 1, );
36  
37  
38  
39  
40  
41  
42  
43 1 has 'internal_message' => ( is => ro =>, required => 1, );
44  
45 has '+message' => (
46 is => ro =>,
47 lazy => 1,
48 0 ▶ builder => sub {
Subroutine _build_message: not called CC=1 SCAR=6.9
49 0 return "While decoding:\n" . $_[0]->data . "\n Got: " . $_[0]->internal_message;
50 },
51 1 );
52  
53 1 1;
54  
55 __END__
« MetaPOD/Assembler.pm ↑ Summary MetaPOD.pm »