blib/lib/Mason/Types.pm

filter: Statementstmt 92.0% 23 / 25 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 6 / 8 Podpod n/a totaltotal 82.8% 29 / 35 CC 2 SCAR 4.8
CC
2
Cov
85%
__ANON__
3.7
__ANON__
1.1
BEGIN
1.0
CRAP 1.6
« blib/lib/Mason/CodeCache.pm ↑ Summary blib/lib/Mason/t/Autobase.pm »
1 package Mason::Types;
2 22 $Mason::Types::VERSION = '2.24';
3 22 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 22 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 22 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 22 subtype 'Mason::Types::CompRoot' => as 'ArrayRef[Str]';
8 109 ▶coerce 'Mason::Types::CompRoot' => from 'Str' => via { [$_] };
Subroutine __ANON__: called CC=1 SCAR=0.0
9  
10 22 subtype 'Mason::Types::OutMethod' => as 'CodeRef';
11 8 ▶coerce 'Mason::Types::OutMethod' => from 'ScalarRef' => via {
Subroutine __ANON__: called CC=1 SCAR=0.0
12 8 my $ref = $_;
13 7 ▶ sub { $$ref .= $_[0] }
Subroutine __ANON__: called CC=1 SCAR=0.0
14 8 };
15  
16 22 subtype 'Mason::Types::RegexpRefOrStr' => as 'RegexpRef';
17 0 ▶coerce 'Mason::Types::RegexpRefOrStr' => from 'Str' => via { qr/$/ };
Subroutine __ANON__: not called CC=1 SCAR=1.2
18  
19 22 subtype 'Mason::Types::Autoextend' => as 'ArrayRef[Str]';
20 0 ▶coerce 'Mason::Types::Autoextend' => from 'Bool' => via { $_ ? [ '.mp', '.mc' ] : [] };
Subroutine __ANON__: not called CC=2 SCAR=13.0
Branch: 1 branch
BranchTrueFalseTotal
$_ ? : 0 0 0
21  
22 22 1;
« blib/lib/Mason/CodeCache.pm ↑ Summary blib/lib/Mason/t/Autobase.pm »