blib/lib/Error/TypeTiny/Compilation.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 8 / 8 Podpod 100% 3 / 3 totaltotal 93.9% 31 / 33 CC 2 SCAR 2.3
CC
2
Cov
95%
environment
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/Test/TypeTiny.pm ↑ Summary blib/lib/Types/Common.pm »
1 package Error::TypeTiny::Compilation;
2  
3 4 ▶use 5.008001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
8 4 $Error::TypeTiny::Compilation::AUTHORITY = 'cpan:TOBYINK';
9 4 $Error::TypeTiny::Compilation::VERSION = '2.010001';
10 }
11  
12 4 $Error::TypeTiny::Compilation::VERSION =~ tr/_//d;
13  
14 4 require Error::TypeTiny;
15 4 our @ISA = 'Error::TypeTiny';
16  
17 4 ▶sub code { $_[0]{code} }
Subroutine code: called CC=1 SCAR=0.0
Pod documented
18 1 ▶sub environment { $_[0]{environment} ||= {} }
Subroutine environment: called CC=2 SCAR=7.6
Pod documented
Condition50%1/2
$_[0]{"environment"} ||= {}
l!l
10
MC/DC0%0/1
$_[0]{"environment"} ||= {}
$_[0]{"environment"}
Truth table50%1/2
A
A= $_[0]{"environment"}
Aresult
11
00
19 6 ▶sub errstr { $_[0]{errstr} }
Subroutine errstr: called CC=1 SCAR=0.0
Pod documented
20  
21 2 ▶sub _build_message {
Subroutine _build_message: called CC=1 SCAR=0.0
22 2 my $self = shift;
23 2 sprintf( "Failed to compile source because: %s", $self->errstr );
24 }
25  
26 4 1;
27  
28 __END__
« blib/lib/Test/TypeTiny.pm ↑ Summary blib/lib/Types/Common.pm »