line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
3
|
|
|
3
|
|
41882
|
use 5.006; # pragmas |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
100
|
|
2
|
3
|
|
|
3
|
|
12
|
use strict; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
83
|
|
3
|
3
|
|
|
3
|
|
11
|
use warnings; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
177
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Test::File::ShareDir::Module; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '1.001000'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# ABSTRACT: Simplified module oriented ShareDir tester |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY |
12
|
|
|
|
|
|
|
|
13
|
3
|
|
|
3
|
|
1500
|
use File::ShareDir 1.00 qw(); |
|
3
|
|
|
|
|
15210
|
|
|
3
|
|
|
|
|
74
|
|
14
|
3
|
|
|
3
|
|
907
|
use Test::File::ShareDir::Utils qw( extract_dashes ); |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
455
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub import { |
28
|
2
|
|
|
2
|
|
18
|
my ( undef, $arg ) = @_; |
29
|
|
|
|
|
|
|
|
30
|
2
|
50
|
33
|
|
|
18
|
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
|
|
|
|
|
2
|
my %input_config = %{$arg}; |
|
2
|
|
|
|
|
6
|
|
36
|
|
|
|
|
|
|
|
37
|
2
|
|
|
|
|
731
|
require Test::File::ShareDir::Object::Module; |
38
|
|
|
|
|
|
|
|
39
|
2
|
|
|
|
|
9
|
my $module_object = Test::File::ShareDir::Object::Module->new(extract_dashes('modules', \%input_config )); |
40
|
2
|
|
|
|
|
145
|
$module_object->install_all_modules(); |
41
|
2
|
|
|
|
|
11
|
$module_object->register(); |
42
|
2
|
|
|
|
|
26
|
return 1; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
__END__ |