blib/lib/Types/Common.pm

filter: Statementstmt 96.7% 30 / 31 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 95.1% 39 / 41 CC 2 SCAR 2.3
CC
2
Cov
94%
BEGIN
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/Error/TypeTiny/Compilation.pm ↑ Summary
1 package Types::Common;
2  
3 25 ▶use 5.008001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 25 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 25 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 25 ▶BEGIN {
Subroutine BEGIN: called CC=2 SCAR=7.6
8 25 eval { require re };
9 0 ▶ if ( $] < 5.010 ) { require Devel::TypeTiny::Perl58Compat }
Branch: 1 branch
BranchTrueFalseTotal
if ($] < "5.01") 0 25 25
10 }
11  
12 25 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
13 25 $Types::Common::AUTHORITY = 'cpan:TOBYINK';
14 25 $Types::Common::VERSION = '2.010001';
15 }
16  
17 25 our ( @EXPORT, @EXPORT_OK, %EXPORT_TAGS );
18  
19 use Type::Library
20 25 ▶ -extends => [ qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
21 Types::Standard
22 Types::Common::Numeric
23 Types::Common::String
24 Types::TypeTiny
25 25 ) ];
26  
27 25 ▶use Type::Params -sigs;
Subroutine BEGIN: called CC=1 SCAR=0.0
28 25 $EXPORT_TAGS{sigs} = $Type::Params::EXPORT_TAGS{sigs};
29 25 push @EXPORT_OK, @{ $EXPORT_TAGS{sigs} };
30  
31 4 ▶sub _generate_t {
Subroutine _generate_t: called CC=1 SCAR=0.0
32 4 my $package = shift;
33 4 require Type::Registry;
34 4 my $t = 'Type::Registry'->_generate_t( @_ );
35 4 $t->()->add_types( $package );
36 4 return $t;
37 }
38 25 push @EXPORT_OK, 't';
39  
40 25 __PACKAGE__->meta->make_immutable;
41  
42 __END__
« blib/lib/Error/TypeTiny/Compilation.pm ↑ Summary