blib/lib/Dallycot/AST/TypePromotion.pm

filter: Statementstmt 73.6% 14 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 72.0% 18 / 25 CC 1 SCAR 1.8
CC
1
Cov
74%
to_string
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« blib/lib/Dallycot/AST/Reciprocal.pm ↑ Summary blib/lib/Dallycot/AST/Equality.pm »
1 package Dallycot::AST::TypePromotion;
2 29 our $AUTHORITY = 'cpan:JSMITH';
3  
4 # ABSTRACT: Manages the conversion of a value to a new type
5  
6 29 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 29 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 29 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 29 ▶use parent 'Dallycot::AST';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 sub to_string {
13 0 ▶ my ($self) = @_;
Subroutine to_string: not called CC=1 SCAR=6.9
Pod undocumented
14 0 my @bits = @{$self};
15  
16 0 my $expr = shift @bits;
17  
18 0 return join( "^^", $expr->to_string, @bits );
19 }
20  
21 29 1;
« blib/lib/Dallycot/AST/Reciprocal.pm ↑ Summary blib/lib/Dallycot/AST/Equality.pm »