CSV.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 96.3% 26 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« CSV/LoL.pm ↑ Summary CSV/Grammar.pm »
1 package Pegex::CSV;
2 2 our $VERSION = '0.0.4';
3  
4 2 ▶use Pegex::Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use Pegex::Parser;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use Pegex::CSV::Grammar;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use Pegex::CSV::LoL;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use Encode;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 10 ▶sub load {
Subroutine load: called CC=1 SCAR=0.0
Pod undocumented
12 10 my ($self, $csv) = @_;
13  
14 10 my $parser = Pegex::Parser->new(
15 grammar => Pegex::CSV::Grammar->new,
16 receiver => Pegex::CSV::LoL->new,
17 # debug => 1,
18 );
19  
20 10 return $parser->parse(decode_utf8 $csv);
21 }
22  
23 2 1;
« CSV/LoL.pm ↑ Summary CSV/Grammar.pm »