File Coverage

blib/lib/Perl6/PVIP.pm
Criterion Covered Total %
statement 21 29 72.4
branch n/a
condition n/a
subroutine 7 10 70.0
pod n/a
total 28 39 71.7


line stmt bran cond sub pod time code
1             package Perl6::PVIP;
2 28     28   57166 use 5.008005;
  28         90  
  28         1045  
3 28     28   160 use strict;
  28         50  
  28         818  
4 28     28   162 use warnings;
  28         68  
  28         950  
5 28     28   2917 use parent qw(Exporter);
  28         1116  
  28         158  
6              
7             our $VERSION = "0.12";
8              
9 28     28   20821 use Perl6::PVIP::_consts;
  28         76  
  28         874  
10 28     28   18773 use Perl6::PVIP::Node;
  28         75  
  28         758  
11              
12 28     28   175 use XSLoader;
  28         47  
  28         4983  
13             XSLoader::load(__PACKAGE__, $VERSION);
14              
15             sub new {
16 0     0     my $class = shift;
17 0           return bless {
18             }, $class;
19             }
20              
21             sub parse_string {
22 0     0     my ($self, $code) = @_;
23 0           my ($node, $err) = Perl6::PVIP::_parse_string($code);
24 0           $self->{errstr} = $err;
25 0           return $node;
26             }
27              
28             sub errstr {
29 0     0     my $self = shift;
30 0           $self->{errstr};
31             }
32              
33             1;
34             __END__