blib/lib/YAML/PP/Ref.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 15 | 15 | 100.0 |
branch | n/a | ||
condition | 1 | 3 | 33.3 |
subroutine | 5 | 5 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 22 | 24 | 91.6 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | # ABSTRACT: Generated Reference Parser backend for YAML::PP | ||||||
2 | package YAML::PP::Ref; | ||||||
3 | 1 | 1 | 60830 | use strict; | |||
1 | 10 | ||||||
1 | 26 | ||||||
4 | 1 | 1 | 5 | use warnings; | |||
1 | 1 | ||||||
1 | 49 | ||||||
5 | |||||||
6 | our $VERSION = '0.02'; # VERSION | ||||||
7 | |||||||
8 | 1 | 1 | 4 | use base 'YAML::PP'; | |||
1 | 2 | ||||||
1 | 547 | ||||||
9 | 1 | 1 | 62426 | use YAML::PP::Ref::Parser; | |||
1 | 3 | ||||||
1 | 77 | ||||||
10 | |||||||
11 | sub new { | ||||||
12 | 4 | 4 | 1 | 13148 | my ($class, %args) = @_; | ||
13 | 4 | 33 | 52 | $args{parser} ||= YAML::PP::Ref::Parser->new; | |||
14 | 4 | 245 | $class->SUPER::new(%args); | ||||
15 | } | ||||||
16 | |||||||
17 | 1; | ||||||
18 | |||||||
19 | __END__ |