Catmandu/Exporter/TSV.pm

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 29 / 29 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Catmandu/Exporter.pm ↑ Summary Catmandu/Fix/Bind/Group.pm »
1 package Catmandu::Exporter::TSV;
2  
3 1 ▶use Catmandu::Sane;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 our $VERSION = '1.2025';
6  
7 1 ▶use Catmandu::Exporter::CSV;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 5 ▶has sep_char => (is => 'ro', default => sub {"\t"},);
Subroutine __ANON__: called CC=1 SCAR=0.0
12 1 has csv => (is => 'lazy', handles => [qw(add)]);
13  
14 1 with 'Catmandu::TabularExporter';
15  
16 5 ▶sub _build_csv {
Subroutine _build_csv: called CC=1 SCAR=0.0
17 5 my ($self) = @_;
18 5 my $csv = Catmandu::Exporter::CSV->new(
19 header => $self->header,
20 collect_fields => $self->collect_fields,
21 sep_char => $self->sep_char,
22 quote_char => undef,
23 escape_char => undef,
24 file => $self->file,
25 );
26 5 $csv->{fields} = $self->fields;
27 5 $csv->{columns} = $self->columns;
28 5 $csv;
29 }
30  
31 1 1;
32  
33 __END__
« Catmandu/Exporter.pm ↑ Summary Catmandu/Fix/Bind/Group.pm »