line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use strict; |
3
|
18
|
|
|
18
|
|
93688
|
use warnings; |
|
18
|
|
|
|
|
72
|
|
|
18
|
|
|
|
|
532
|
|
4
|
18
|
|
|
18
|
|
94
|
|
|
18
|
|
|
|
|
37
|
|
|
18
|
|
|
|
|
403
|
|
5
|
|
|
|
|
|
|
use Moo; |
6
|
18
|
|
|
18
|
|
585
|
use Storable qw(dclone); |
|
18
|
|
|
|
|
6597
|
|
|
18
|
|
|
|
|
107
|
|
7
|
18
|
|
|
18
|
|
9219
|
use Hash::Util qw(lock_hashref); |
|
18
|
|
|
|
|
14550
|
|
|
18
|
|
|
|
|
1381
|
|
8
|
18
|
|
|
18
|
|
9054
|
use Types::Standard qw(HashRef); |
|
18
|
|
|
|
|
43431
|
|
|
18
|
|
|
|
|
132
|
|
9
|
18
|
|
|
18
|
|
2231
|
use namespace::clean; |
|
18
|
|
|
|
|
95586
|
|
|
18
|
|
|
|
|
176
|
|
10
|
18
|
|
|
18
|
|
10401
|
|
|
18
|
|
|
|
|
14289
|
|
|
18
|
|
|
|
|
160
|
|
11
|
|
|
|
|
|
|
### Input ### |
12
|
|
|
|
|
|
|
# Class to isolate and manipulate input HashRef. |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
has _input => ( |
15
|
|
|
|
|
|
|
is => 'ro', |
16
|
|
|
|
|
|
|
isa => HashRef, |
17
|
|
|
|
|
|
|
required => 1, |
18
|
|
|
|
|
|
|
init_arg => 'input', |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
my ($self, %args) = @_; |
22
|
|
|
|
|
|
|
|
23
|
19
|
|
|
19
|
0
|
37598
|
if (my $input = $args{input}) { |
24
|
|
|
|
|
|
|
$args{input} = $self->_clone_and_lock_input($input); |
25
|
19
|
50
|
|
|
|
167
|
} |
26
|
19
|
|
|
|
|
89
|
|
27
|
|
|
|
|
|
|
return \%args; |
28
|
|
|
|
|
|
|
} |
29
|
18
|
|
|
|
|
823
|
|
30
|
|
|
|
|
|
|
return $_[0]->_input; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
36
|
|
|
36
|
0
|
5472
|
# Create locked copy. |
34
|
|
|
|
|
|
|
# Copy input to work with isolated HashRef. |
35
|
|
|
|
|
|
|
my $input = dclone($_[1]); |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
# Lock input to prevent accidental modifying. |
38
|
|
|
|
|
|
|
return lock_hashref($input); |
39
|
19
|
|
|
19
|
|
1386
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |