line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#line 1 |
2
|
1
|
|
|
1
|
|
954
|
package Test::LoadAllModules; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
3
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
4
|
1
|
|
|
1
|
|
3268
|
use warnings; |
|
1
|
|
|
|
|
14833
|
|
|
1
|
|
|
|
|
56
|
|
5
|
1
|
|
|
1
|
|
2704
|
use Module::Pluggable::Object; |
|
1
|
|
|
|
|
2576
|
|
|
1
|
|
|
|
|
105
|
|
6
|
1
|
|
|
1
|
|
1886
|
use List::MoreUtils qw(any); |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
45
|
|
7
|
|
|
|
|
|
|
use Test::More (); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.02'; |
10
|
1
|
|
|
1
|
|
9
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
399
|
|
11
|
|
|
|
|
|
|
use Exporter; |
12
|
|
|
|
|
|
|
our @ISA = qw/Exporter/; |
13
|
|
|
|
|
|
|
our @EXPORT = qw/all_uses_ok/; |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
1
|
122
|
sub all_uses_ok { |
16
|
1
|
|
|
|
|
3
|
my %param = @_; |
17
|
1
|
50
|
|
|
|
10
|
my $search_path = $param{search_path}; |
18
|
0
|
|
|
|
|
0
|
unless ($search_path) { |
19
|
0
|
|
|
|
|
0
|
Test::More::plan skip_all => 'no search path'; |
20
|
|
|
|
|
|
|
exit; |
21
|
1
|
|
|
|
|
7
|
} |
22
|
1
|
50
|
|
|
|
2
|
Test::More::plan('no_plan'); |
|
1
|
|
|
|
|
6
|
|
23
|
|
|
|
|
|
|
my @exceptions = @{ $param{except} || [] }; |
24
|
1
|
50
|
|
|
|
3
|
my @lib |
|
1
|
|
|
|
|
9
|
|
25
|
1
|
|
|
|
|
3
|
= @{ $param{lib} || [ 'lib' ] }; |
|
31
|
|
|
|
|
31084
|
|
26
|
|
|
|
|
|
|
foreach my $class ( |
27
|
|
|
|
|
|
|
grep { !is_excluded( $_, @exceptions ) } |
28
|
1
|
|
|
|
|
4
|
sort do { |
29
|
1
|
|
|
|
|
11
|
local @INC = @lib; |
30
|
|
|
|
|
|
|
my $finder = Module::Pluggable::Object->new( |
31
|
1
|
|
|
|
|
14
|
search_path => $search_path ); |
32
|
|
|
|
|
|
|
( $search_path, $finder->plugins ); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
) |
35
|
26
|
|
|
|
|
84
|
{ |
36
|
|
|
|
|
|
|
Test::More::use_ok($class); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
31
|
|
|
31
|
0
|
87
|
sub is_excluded { |
41
|
31
|
100
|
|
206
|
|
207
|
my ( $module, @exceptions ) = @_; |
|
206
|
|
|
|
|
17475
|
|
42
|
|
|
|
|
|
|
any { $module eq $_ || $module =~ /$_/ } @exceptions; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
__END__ |