File Coverage

blib/lib/LibYAML/FFI/YPP.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 21 21 100.0


line stmt bran cond sub pod time code
1             # ABSTRACT: YAML::PP frontend for LibYAML::FFI
2             package LibYAML::FFI::YPP;
3 1     1   306646 use strict;
  1         10  
  1         29  
4 1     1   5 use warnings;
  1         2  
  1         28  
5              
6 1     1   5 use base qw/ YAML::PP Exporter /;
  1         11  
  1         136  
7             our @EXPORT_OK = qw/ Load Dump LoadFile DumpFile /;
8              
9             our $VERSION = 'v0.0.1'; # VERSION
10              
11 1     1   420 use LibYAML::FFI::YPP::Parser;
  1         4  
  1         98  
12              
13             sub new {
14 1     1 1 139 my ($class, %args) = @_;
15              
16 1         15 my $self = $class->SUPER::new(
17             parser => LibYAML::FFI::YPP::Parser->new,
18             %args,
19             );
20 1         3828 return $self;
21             }
22              
23             1;
24              
25             __END__