blib/lib/Catmandu/Fix/clone.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 94.7% 18 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Catmandu/Exporter/TSV.pm ↑ Summary blib/lib/Catmandu/Fix/nothing.pm »
1 package Catmandu::Fix::clone;
2  
3 1 ▶use Catmandu::Sane;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 our $VERSION = '1.0201_02';
6  
7 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 with 'Catmandu::Fix::Base';
11  
12 sub emit {
13 1 ▶ my ($self, $fixer) = @_;
Subroutine emit: called CC=1 SCAR=0.0
Pod undocumented
14 1 $fixer->emit_clone($fixer->var);
15 }
16  
17 1 1;
18  
19 __END__
20  
21 =pod
22  
23 =head1 NAME
24  
25 Catmandu::Fix::clone - create a clone of the data object
26  
27 =head1 SYNOPSIS
28  
29 # Create a clone of the data object
30 clone()
31  
32 # Now do all the changes on the clone
33 add_field(foo, 2)
34  
35 =head1 SEE ALSO
36  
37 L<Catmandu::Fix>
38  
39 =cut
« blib/lib/Catmandu/Exporter/TSV.pm ↑ Summary blib/lib/Catmandu/Fix/nothing.pm »