line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tangerine::hook::tests; |
2
|
|
|
|
|
|
|
$Tangerine::hook::tests::VERSION = '0.23'; |
3
|
16
|
|
|
16
|
|
827
|
use 5.010; |
|
16
|
|
|
|
|
36
|
|
4
|
16
|
|
|
16
|
|
46
|
use strict; |
|
16
|
|
|
|
|
15
|
|
|
16
|
|
|
|
|
217
|
|
5
|
16
|
|
|
16
|
|
40
|
use warnings; |
|
16
|
|
|
|
|
21
|
|
|
16
|
|
|
|
|
296
|
|
6
|
16
|
|
|
16
|
|
42
|
use parent 'Tangerine::Hook'; |
|
16
|
|
|
|
|
14
|
|
|
16
|
|
|
|
|
60
|
|
7
|
16
|
|
|
16
|
|
681
|
use Tangerine::Hook; |
|
16
|
|
|
|
|
24
|
|
|
16
|
|
|
|
|
192
|
|
8
|
16
|
|
|
16
|
|
48
|
use Tangerine::HookData; |
|
16
|
|
|
|
|
15
|
|
|
16
|
|
|
|
|
249
|
|
9
|
16
|
|
|
16
|
|
42
|
use Tangerine::Utils qw(any); |
|
16
|
|
|
|
|
15
|
|
|
16
|
|
|
|
|
3303
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub run { |
12
|
138
|
|
|
138
|
1
|
123
|
my ($self, $s) = @_; |
13
|
138
|
100
|
66
|
195
|
|
339
|
if ((any { $s->[0] eq $_ } qw(use no)) && scalar(@$s) > 1 && |
|
195
|
|
100
|
|
|
599
|
|
14
|
323
|
|
|
323
|
|
2020
|
(any { $s->[1] eq $_ } |
15
|
|
|
|
|
|
|
qw(Test::Inter Test::Modern Test::More Test::Strict))) { |
16
|
1
|
|
|
|
|
344
|
require Tangerine::hook::testloading; |
17
|
1
|
|
|
|
|
8
|
return Tangerine::HookData->new( hooks => [ |
18
|
|
|
|
|
|
|
Tangerine::hook::testloading->new(type => 'runtime') ] ); |
19
|
|
|
|
|
|
|
} |
20
|
137
|
100
|
66
|
194
|
|
1161
|
if ((any { $s->[0] eq $_ } qw(use no)) && scalar(@$s) > 1 && |
|
194
|
|
100
|
|
|
590
|
|
21
|
157
|
|
|
157
|
|
1147
|
(any { $s->[1] eq $_ } qw(Test::Needs Test::Requires))) { |
22
|
6
|
|
|
|
|
66
|
require Tangerine::hook::testrequires; |
23
|
6
|
|
|
|
|
19
|
return Tangerine::HookData->new( hooks => [ |
24
|
|
|
|
|
|
|
Tangerine::hook::testrequires->new(type => 'runtime') ] ); |
25
|
|
|
|
|
|
|
} |
26
|
131
|
|
|
|
|
1078
|
return; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |