blib/lib/YAML/PP/Schema/Merge.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/YAML/PP/Grammar.pm ↑ Summary blib/lib/YAML/PP/Type/MergeKey.pm »
1 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 package YAML::PP::Schema::Merge;
4  
5 2 our $VERSION = 'v0.41.1'; # TRIAL VERSION
6  
7 2 ▶use YAML::PP::Type::MergeKey;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶sub register {
Subroutine register: called CC=1 SCAR=0.0
Pod documented
10 1 my ($self, %args) = @_;
11 1 my $schema = $args{schema};
12  
13 1 $schema->add_resolver(
14 tag => 'tag:yaml.org,2002:merge',
15 match => [ equals => '<<' => YAML::PP::Type::MergeKey->new ],
16 );
17 }
18  
19 2 1;
20  
21 __END__
« blib/lib/YAML/PP/Grammar.pm ↑ Summary blib/lib/YAML/PP/Type/MergeKey.pm »