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 | 70153 | use strict; | |||
1 | 13 | ||||||
1 | 30 | ||||||
4 | 1 | 1 | 5 | use warnings; | |||
1 | 1 | ||||||
1 | 44 | ||||||
5 | |||||||
6 | 1 | 1 | 6 | use base 'YAML::PP'; | |||
1 | 2 | ||||||
1 | 593 | ||||||
7 | 1 | 1 | 71242 | use YAML::PP::Ref::Parser; | |||
1 | 16 | ||||||
1 | 89 | ||||||
8 | |||||||
9 | sub new { | ||||||
10 | 4 | 4 | 1 | 16201 | my ($class, %args) = @_; | ||
11 | 4 | 33 | 61 | $args{parser} ||= YAML::PP::Ref::Parser->new; | |||
12 | 4 | 274 | $class->SUPER::new(%args); | ||||
13 | } | ||||||
14 | |||||||
15 | 1; | ||||||
16 | |||||||
17 | __END__ |