line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
3
|
|
|
3
|
|
39907
|
use 5.006; # pragmas |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
108
|
|
2
|
3
|
|
|
3
|
|
12
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
84
|
|
3
|
3
|
|
|
3
|
|
12
|
use warnings; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
188
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Test::File::ShareDir::Module; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '1.001001'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# ABSTRACT: Simplified module oriented ShareDir tester |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY |
12
|
|
|
|
|
|
|
|
13
|
3
|
|
|
3
|
|
1415
|
use File::ShareDir 1.00 qw(); |
|
3
|
|
|
|
|
15561
|
|
|
3
|
|
|
|
|
79
|
|
14
|
3
|
|
|
3
|
|
1104
|
use Test::File::ShareDir::Utils qw( extract_dashes ); |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
428
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub import { |
28
|
2
|
|
|
2
|
|
23
|
my ( undef, $arg ) = @_; |
29
|
|
|
|
|
|
|
|
30
|
2
|
50
|
33
|
|
|
45
|
if ( not ref $arg or 'HASH' ne ref $arg ) { |
31
|
0
|
|
|
|
|
0
|
require Carp; |
32
|
0
|
|
|
|
|
0
|
return Carp::croak q[Must pass a hashref]; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
2
|
|
|
|
|
4
|
my %input_config = %{$arg}; |
|
2
|
|
|
|
|
9
|
|
36
|
|
|
|
|
|
|
|
37
|
2
|
|
|
|
|
657
|
require Test::File::ShareDir::Object::Module; |
38
|
|
|
|
|
|
|
|
39
|
2
|
|
|
|
|
11
|
my $module_object = Test::File::ShareDir::Object::Module->new(extract_dashes('modules', \%input_config )); |
40
|
2
|
|
|
|
|
171
|
$module_object->install_all_modules(); |
41
|
2
|
|
|
|
|
11
|
$module_object->register(); |
42
|
2
|
|
|
|
|
22
|
return 1; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
__END__ |