line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tangerine::hook::require; |
2
|
|
|
|
|
|
|
$Tangerine::hook::require::VERSION = '0.20'; |
3
|
15
|
|
|
15
|
|
1125
|
use strict; |
|
15
|
|
|
|
|
29
|
|
|
15
|
|
|
|
|
430
|
|
4
|
15
|
|
|
15
|
|
70
|
use warnings; |
|
15
|
|
|
|
|
28
|
|
|
15
|
|
|
|
|
420
|
|
5
|
15
|
|
|
15
|
|
99
|
use parent 'Tangerine::Hook'; |
|
15
|
|
|
|
|
26
|
|
|
15
|
|
|
|
|
87
|
|
6
|
15
|
|
|
15
|
|
777
|
use Tangerine::HookData; |
|
15
|
|
|
|
|
28
|
|
|
15
|
|
|
|
|
300
|
|
7
|
15
|
|
|
15
|
|
65
|
use Tangerine::Occurence; |
|
15
|
|
|
|
|
38
|
|
|
15
|
|
|
|
|
2229
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub run { |
10
|
132
|
|
|
132
|
1
|
196
|
my ($self, $s) = @_; |
11
|
132
|
100
|
100
|
|
|
511
|
if (scalar(@$s) > 1 && $s->[0] eq 'require') { |
12
|
15
|
100
|
|
|
|
191
|
return if $s->[1] eq ';'; |
13
|
14
|
|
|
|
|
154
|
my $module = $s->[1]; |
14
|
14
|
100
|
|
|
|
45
|
return Tangerine::HookData->new( |
15
|
|
|
|
|
|
|
modules => { $module => Tangerine::Occurence->new }, |
16
|
|
|
|
|
|
|
) unless $module =~ /^v?5(?:\..*)?$/; |
17
|
|
|
|
|
|
|
} |
18
|
119
|
|
|
|
|
1738
|
return; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
__END__ |