line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Meta::Builder::Util; |
2
|
2
|
|
|
2
|
|
12
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
53
|
|
3
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
226
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
sub import { |
6
|
4
|
|
|
4
|
|
9
|
my $class = shift; |
7
|
4
|
|
|
|
|
13
|
my $caller = caller; |
8
|
4
|
|
|
|
|
79
|
inject( $caller, "inject", \&inject ); |
9
|
|
|
|
|
|
|
} |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub inject { |
12
|
100
|
|
|
100
|
1
|
246
|
my ( $class, $sub, $code, $nowarn ) = @_; |
13
|
100
|
100
|
|
|
|
169
|
if ( $nowarn ) { |
14
|
2
|
|
|
2
|
|
14
|
no strict 'refs'; ## no critic |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
74
|
|
15
|
2
|
|
|
2
|
|
12
|
no warnings 'redefine'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
135
|
|
16
|
14
|
|
|
|
|
18
|
*{"$class\::$sub"} = $code; |
|
14
|
|
|
|
|
44
|
|
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
else { |
19
|
2
|
|
|
2
|
|
13
|
no strict 'refs'; ## no critic |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
143
|
|
20
|
86
|
|
|
|
|
116
|
*{"$class\::$sub"} = $code; |
|
86
|
|
|
|
|
615
|
|
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |