File Coverage

blib/lib/Data/ModeMerge/Mode/NORMAL.pm
Criterion Covered Total %
statement 43 43 100.0
branch n/a
condition n/a
subroutine 22 22 100.0
pod 4 18 22.2
total 69 83 83.1


line stmt bran cond sub pod time code
1             package Data::ModeMerge::Mode::NORMAL;
2              
3             our $DATE = '2016-02-25'; # DATE
4             our $VERSION = '0.33'; # VERSION
5              
6 31     31   502 use 5.010;
  31         77  
7 31     31   118 use strict;
  31         35  
  31         633  
8 31     31   111 use warnings;
  31         33  
  31         841  
9 31     31   100 use Mo qw(build default);
  31         34  
  31         173  
10             extends 'Data::ModeMerge::Mode::Base';
11              
12 677     677 1 1451 sub name { 'NORMAL' }
13              
14 8231     8231 1 12536 sub precedence_level { 5 }
15              
16 330     330 1 943 sub default_prefix { '*' }
17              
18 330     330 1 1588 sub default_prefix_re { qr/^\*/ }
19              
20             sub merge_SCALAR_SCALAR {
21 150     150 0 235 my ($self, $key, $l, $r) = @_;
22 150         475 ($key, $r);
23             }
24              
25             sub merge_SCALAR_ARRAY {
26 4     4 0 8 my ($self, $key, $l, $r) = @_;
27 4         10 ($key, $r);
28             }
29              
30             sub merge_SCALAR_HASH {
31 5     5 0 10 my ($self, $key, $l, $r) = @_;
32 5         13 ($key, $r);
33             }
34              
35             sub merge_SCALAR_CODE {
36 1     1 0 3 my ($self, $key, $l, $r) = @_;
37 1         10 ($key, $r);
38             }
39              
40             sub merge_ARRAY_SCALAR {
41 4     4 0 8 my ($self, $key, $l, $r) = @_;
42 4         10 ($key, $r);
43             }
44              
45             sub merge_ARRAY_HASH {
46 3     3 0 7 my ($self, $key, $l, $r) = @_;
47 3         7 ($key, $r);
48             }
49              
50             sub merge_ARRAY_CODE {
51 1     1 0 3 my ($self, $key, $l, $r) = @_;
52 1         3 ($key, $r);
53             }
54              
55             sub merge_HASH_SCALAR {
56 6     6 0 14 my ($self, $key, $l, $r) = @_;
57 6         16 ($key, $r);
58             }
59              
60             sub merge_HASH_ARRAY {
61 4     4 0 9 my ($self, $key, $l, $r) = @_;
62 4         10 ($key, $r);
63             }
64              
65             sub merge_HASH_CODE {
66 1     1 0 9 my ($self, $key, $l, $r) = @_;
67 1         4 ($key, $r);
68             }
69              
70             sub merge_CODE_SCALAR {
71 1     1 0 4 my ($self, $key, $l, $r) = @_;
72 1         3 ($key, $r);
73             }
74              
75             sub merge_CODE_ARRAY {
76 1     1 0 2 my ($self, $key, $l, $r) = @_;
77 1         4 ($key, $r);
78             }
79              
80             sub merge_CODE_HASH {
81 1     1 0 3 my ($self, $key, $l, $r) = @_;
82 1         4 ($key, $r);
83             }
84              
85             sub merge_CODE_CODE {
86 1     1 0 2 my ($self, $key, $l, $r) = @_;
87 1         4 ($key, $r);
88             }
89              
90             1;
91             # ABSTRACT: Handler for Data::ModeMerge NORMAL merge mode
92              
93             __END__
94              
95             =pod
96              
97             =encoding UTF-8
98              
99             =head1 NAME
100              
101             Data::ModeMerge::Mode::NORMAL - Handler for Data::ModeMerge NORMAL merge mode
102              
103             =head1 VERSION
104              
105             This document describes version 0.33 of Data::ModeMerge::Mode::NORMAL (from Perl distribution Data-ModeMerge), released on 2016-02-25.
106              
107             =head1 SYNOPSIS
108              
109             use Data::ModeMerge;
110              
111             =head1 DESCRIPTION
112              
113             This is the class to handle NORMAL merge mode.
114              
115             =for Pod::Coverage ^merge_.*
116              
117             =head1 HOMEPAGE
118              
119             Please visit the project's homepage at L<https://metacpan.org/release/Data-ModeMerge>.
120              
121             =head1 SOURCE
122              
123             Source repository is at L<https://github.com/perlancar/perl-Data-ModeMerge>.
124              
125             =head1 BUGS
126              
127             Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Data-ModeMerge>
128              
129             When submitting a bug or request, please include a test-file or a
130             patch to an existing test-file that illustrates the bug or desired
131             feature.
132              
133             =head1 AUTHOR
134              
135             perlancar <perlancar@cpan.org>
136              
137             =head1 COPYRIGHT AND LICENSE
138              
139             This software is copyright (c) 2016 by perlancar@cpan.org.
140              
141             This is free software; you can redistribute it and/or modify it under
142             the same terms as the Perl 5 programming language system itself.
143              
144             =cut