line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#line 1 |
2
|
1
|
|
|
1
|
|
684
|
package Test::LoadAllModules; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
31
|
|
3
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
4
|
1
|
|
|
1
|
|
1036
|
use warnings; |
|
1
|
|
|
|
|
10324
|
|
|
1
|
|
|
|
|
40
|
|
5
|
1
|
|
|
1
|
|
7250
|
use Module::Pluggable::Object; |
|
1
|
|
|
|
|
1411
|
|
|
1
|
|
|
|
|
94
|
|
6
|
1
|
|
|
1
|
|
673
|
use List::MoreUtils qw(any); |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
40
|
|
7
|
|
|
|
|
|
|
use Test::More (); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.02'; |
10
|
1
|
|
|
1
|
|
6
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
345
|
|
11
|
|
|
|
|
|
|
use Exporter; |
12
|
|
|
|
|
|
|
our @ISA = qw/Exporter/; |
13
|
|
|
|
|
|
|
our @EXPORT = qw/all_uses_ok/; |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
1
|
67
|
sub all_uses_ok { |
16
|
1
|
|
|
|
|
2
|
my %param = @_; |
17
|
1
|
50
|
|
|
|
6
|
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
|
|
|
|
|
3
|
} |
22
|
1
|
50
|
|
|
|
1
|
Test::More::plan('no_plan'); |
|
1
|
|
|
|
|
6
|
|
23
|
|
|
|
|
|
|
my @exceptions = @{ $param{except} || [] }; |
24
|
1
|
50
|
|
|
|
2
|
my @lib |
|
1
|
|
|
|
|
8
|
|
25
|
1
|
|
|
|
|
2
|
= @{ $param{lib} || [ 'lib' ] }; |
|
1
|
|
|
|
|
218
|
|
26
|
|
|
|
|
|
|
foreach my $class ( |
27
|
|
|
|
|
|
|
grep { !is_excluded( $_, @exceptions ) } |
28
|
1
|
|
|
|
|
4
|
sort do { |
29
|
1
|
|
|
|
|
8
|
local @INC = @lib; |
30
|
|
|
|
|
|
|
my $finder = Module::Pluggable::Object->new( |
31
|
1
|
|
|
|
|
13
|
search_path => $search_path ); |
32
|
|
|
|
|
|
|
( $search_path, $finder->plugins ); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
) |
35
|
1
|
|
|
|
|
5
|
{ |
36
|
|
|
|
|
|
|
Test::More::use_ok($class); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
1
|
|
|
1
|
0
|
3
|
sub is_excluded { |
41
|
1
|
0
|
|
0
|
|
30
|
my ( $module, @exceptions ) = @_; |
|
0
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
any { $module eq $_ || $module =~ /$_/ } @exceptions; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
__END__ |