File Coverage

blib/lib/Pegex/vCard.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 1 0.0
total 19 20 95.0


line stmt bran cond sub pod time code
1             package Pegex::vCard;
2             our $VERSION = '0.05';
3              
4 1     1   45514 use Pegex::Base;
  1         2543  
  1         8  
5              
6 1     1   4551 use Pegex::Parser;
  1         14442  
  1         31  
7 1     1   585 use Pegex::vCard::Grammar;
  1         3  
  1         9  
8 1     1   548 use Pegex::vCard::Data;
  1         4  
  1         90  
9              
10             sub parse {
11 1     1 0 120 my ($self, $input) = @_;
12              
13 1         11 return Pegex::Parser->new(
14             grammar => Pegex::vCard::Grammar->new,
15             receiver => Pegex::vCard::Data->new,
16             # debug => 1,
17             )->parse($input);
18             }
19              
20             1;