Catmandu/Fix/Builder.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 96.7% 30 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Catmandu/Importer/YAML.pm ↑ Summary Catmandu/IdGenerator/Mock.pm »
1 package Catmandu::Fix::Builder;
2  
3 99 ▶use Catmandu::Sane;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 99 our $VERSION = '1.2025';
6  
7 99 ▶use Catmandu::Fix;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 99 ▶use Catmandu::Util qw(is_value require_package);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 99 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 99 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 99 with 'Catmandu::Fix::Base';
13  
14 99 has fixer => (is => 'lazy');
15  
16 575 ▶sub emit {
Subroutine emit: called CC=1 SCAR=0.0
Pod undocumented
17 575 my ($self, $fixer) = @_;
18 575 my $data_var = $fixer->var;
19 575 my $sub_var = $fixer->capture($self->fixer);
20 575 my $val = $self->_emit_call($sub_var, $data_var);
21 575 $self->_emit_assign($data_var, $val);
22 }
23  
24 99 1;
25  
26 __END__
« Catmandu/Importer/YAML.pm ↑ Summary Catmandu/IdGenerator/Mock.pm »