Catmandu/Exporter/YAML.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 96.1% 25 / 26 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Catmandu/Iterator.pm ↑ Summary Catmandu/Fix/Base.pm »
1 package Catmandu::Exporter::YAML;
2  
3 4 ▶use Catmandu::Sane;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 our $VERSION = '1.2025';
6  
7 4 ▶use YAML::XS ();
Subroutine BEGIN: called CC=1 SCAR=0.0
8 4 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 4 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 with 'Catmandu::Exporter';
12  
13 6 ▶sub add {
Subroutine add: called CC=1 SCAR=0.0
Pod undocumented
14 6 my ($self, $data) = @_;
15 6 my $yaml = YAML::XS::Dump($data);
16 6 utf8::decode($yaml);
17 6 $self->fh->print($yaml);
18 6 $self->fh->print("...\n");
19 }
20  
21 2 1;
22  
23 __END__
« Catmandu/Iterator.pm ↑ Summary Catmandu/Fix/Base.pm »