File Coverage

inc/YAML/Loader/Base.pm
Criterion Covered Total %
statement 5 6 83.3
branch 1 2 50.0
condition 1 6 16.6
subroutine 2 3 66.6
pod 0 2 0.0
total 9 19 47.3


line stmt bran cond sub pod time code
1             #line 1
2 2     2   10 package YAML::Loader::Base;
  2         2  
  2         9  
3             use YAML::Mo;
4              
5             our $VERSION = '0.80';
6              
7             has load_code => default => sub {0};
8             has stream => default => sub {''};
9             has document => default => sub {0};
10             has line => default => sub {0};
11             has documents => default => sub {[]};
12             has lines => default => sub {[]};
13             has eos => default => sub {0};
14             has done => default => sub {0};
15             has anchor2node => default => sub {{}};
16             has level => default => sub {0};
17             has offset => default => sub {[]};
18             has preface => default => sub {''};
19             has content => default => sub {''};
20             has indent => default => sub {0};
21             has major_version => default => sub {0};
22             has minor_version => default => sub {0};
23             has inline => default => sub {''};
24              
25 2     2 0 5 sub set_global_options {
26 2 50 0     19 my $self = shift;
      33        
27             $self->load_code($YAML::LoadCode || $YAML::UseCode)
28             if defined $YAML::LoadCode or defined $YAML::UseCode;
29             }
30              
31 0     0 0   sub load {
32             die 'load() not implemented in this class.';
33             }
34              
35             1;
36              
37             __END__