line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tangerine::hook::tests; |
2
|
|
|
|
|
|
|
$Tangerine::hook::tests::VERSION = '0.20'; |
3
|
15
|
|
|
15
|
|
1320
|
use 5.010; |
|
15
|
|
|
|
|
52
|
|
4
|
15
|
|
|
15
|
|
77
|
use strict; |
|
15
|
|
|
|
|
26
|
|
|
15
|
|
|
|
|
488
|
|
5
|
15
|
|
|
15
|
|
79
|
use warnings; |
|
15
|
|
|
|
|
29
|
|
|
15
|
|
|
|
|
394
|
|
6
|
15
|
|
|
15
|
|
68
|
use parent 'Tangerine::Hook'; |
|
15
|
|
|
|
|
29
|
|
|
15
|
|
|
|
|
89
|
|
7
|
15
|
|
|
15
|
|
926
|
use List::Util 1.33 qw(any); |
|
15
|
|
|
|
|
255
|
|
|
15
|
|
|
|
|
936
|
|
8
|
15
|
|
|
15
|
|
116
|
use Tangerine::Hook; |
|
15
|
|
|
|
|
30
|
|
|
15
|
|
|
|
|
353
|
|
9
|
15
|
|
|
15
|
|
82
|
use Tangerine::HookData; |
|
15
|
|
|
|
|
29
|
|
|
15
|
|
|
|
|
3840
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub run { |
12
|
132
|
|
|
132
|
1
|
207
|
my ($self, $s) = @_; |
13
|
132
|
100
|
66
|
187
|
|
490
|
if ((any { $s->[0] eq $_ } qw(use no)) && scalar(@$s) > 1 && |
|
187
|
|
100
|
|
|
1094
|
|
14
|
307
|
|
|
307
|
|
3661
|
(any { $s->[1] eq $_ } |
15
|
|
|
|
|
|
|
qw(Test::Inter Test::Modern Test::More Test::Strict))) { |
16
|
1
|
|
|
|
|
619
|
require Tangerine::hook::testloading; |
17
|
1
|
|
|
|
|
9
|
return Tangerine::HookData->new( hooks => [ |
18
|
|
|
|
|
|
|
Tangerine::hook::testloading->new(type => 'runtime') ] ); |
19
|
|
|
|
|
|
|
} |
20
|
131
|
100
|
66
|
186
|
|
1983
|
if ((any { $s->[0] eq $_ } qw(use no)) && scalar(@$s) > 1 && |
|
186
|
|
100
|
|
|
1067
|
|
21
|
|
|
|
|
|
|
$s->[1] eq 'Test::Requires') { |
22
|
3
|
|
|
|
|
101
|
require Tangerine::hook::testrequires; |
23
|
3
|
|
|
|
|
13
|
return Tangerine::HookData->new( hooks => [ |
24
|
|
|
|
|
|
|
Tangerine::hook::testrequires->new(type => 'runtime') ] ); |
25
|
|
|
|
|
|
|
} |
26
|
128
|
|
|
|
|
2787
|
return; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |