blib/lib/Text/CSV_XS/TSV.pm

filter: Statementstmt 66.6% 14 / 21 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 52.9% 18 / 34 CC 5 SCAR 29.5
CC
5
Cov
48%
new
30.0
BEGIN
1.0
BEGIN
1.0
CRAP 19.1
↑ Summary
1 package Text::CSV_XS::TSV;
2  
3 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
4 1 our $DATE = '2019-12-12'; # DATE
5 1 our $DIST = 'Text-CSV_XS-TSV'; # DIST
6 1 our $VERSION = '0.003'; # VERSION
7  
8 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 ▶use parent 'Text::CSV_XS';
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 0 ▶sub new {
Subroutine new: not called CC=5 SCAR=34.0
Pod documented
14 0 my $class = shift;
15  
16 0 ▶ my $opts = $_[0] ? { %{$_[0]} } : {};
Branch: 1 branch
BranchTrueFalseTotal
$_[0] ? : 0 0 0
17 0 ▶ $opts->{sep_char} = "\t" unless exists $opts->{sep_char};
Branch: 1 branch
BranchTrueFalseTotal
unless exists $opts->{"sep_char"} 0 0 0
18 0 ▶ $opts->{quote_char} = undef unless exists $opts->{quote_char};
Branch: 1 branch
BranchTrueFalseTotal
unless exists $opts->{"quote_char"} 0 0 0
19 0 ▶ $opts->{escape_char} = undef unless exists $opts->{escape_char};
Branch: 1 branch
BranchTrueFalseTotal
unless exists $opts->{"escape_char"} 0 0 0
20  
21 0 $class->SUPER::new($opts);
22 }
23  
24 1 1;
25 # ABSTRACT: Set Text::CSV_XS default options to parse TSV
26  
27 __END__
↑ Summary