Focus/Applicative/Const/First.pm

filter: Statementstmt 100% 20 / 20 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 3 / 3 totaltotal 100% 32 / 32 CC 3 SCAR 5.1
CC
3
Cov
100%
build
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.7
« Focus/Lens/Composite.pm ↑ Summary Focus/Applicative/Const/List.pm »
1 package Data::Focus::Applicative::Const::First;
2 21 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 21 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 21 ▶use parent qw(Data::Focus::Applicative::Const);
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 21 my $PURE = __PACKAGE__->new(undef);
7  
8 73 ▶sub pure { $PURE }
Subroutine pure: called CC=1 SCAR=0.0
Pod documented
9  
10 611 ▶sub build {
Subroutine build: called CC=3 SCAR=11.0
Pod documented
11 611 my ($class, $builder, @f_parts) = @_;
12 611 foreach my $f_part (@f_parts) {
13 437 ▶ return $f_part if defined($f_part->get_const);
Branch: 1 branch
BranchTrueFalseTotal
if defined $f_part->get_const 416 21 437
14 }
15 195 return $PURE;
16 }
17  
18 643 ▶sub create_part_mapper {
Subroutine create_part_mapper: called CC=1 SCAR=0.0
Pod documented
19 643 my ($class) = @_;
20 643 ▶ return sub { my ($datum) = @_; $class->new(\$datum) };
Subroutine __ANON__: called CC=1 SCAR=0.0
21 }
22  
23 21 1;
24 __END__
« Focus/Lens/Composite.pm ↑ Summary Focus/Applicative/Const/List.pm »