File Coverage

blib/lib/YAML/PP/Schema/Merge.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 17 17 100.0


line stmt bran cond sub pod time code
1 2     2   154541 use strict;
  2         3  
  2         66  
2 2     2   7 use warnings;
  2         2  
  2         155  
3             package YAML::PP::Schema::Merge;
4              
5             our $VERSION = 'v0.40.0'; # VERSION
6              
7 2     2   711 use YAML::PP::Type::MergeKey;
  2         5  
  2         180  
8              
9             sub register {
10 1     1 1 3 my ($self, %args) = @_;
11 1         2 my $schema = $args{schema};
12              
13 1         4 $schema->add_resolver(
14             tag => 'tag:yaml.org,2002:merge',
15             match => [ equals => '<<' => YAML::PP::Type::MergeKey->new ],
16             );
17             }
18              
19             1;
20              
21             __END__