line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
26159
|
use 5.006; # pragmas |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
100
|
|
2
|
2
|
|
|
2
|
|
12
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
125
|
|
3
|
2
|
|
|
2
|
|
26
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
199
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Test::File::ShareDir::Dist; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '1.001001'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# ABSTRACT: Simplified dist oriented ShareDir tester |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY |
12
|
|
|
|
|
|
|
|
13
|
2
|
|
|
2
|
|
1371
|
use File::ShareDir 1.00 qw(); |
|
2
|
|
|
|
|
12336
|
|
|
2
|
|
|
|
|
51
|
|
14
|
2
|
|
|
2
|
|
711
|
use Test::File::ShareDir::Utils qw( extract_dashes ); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
361
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub import { |
28
|
1
|
|
|
1
|
|
13
|
my ( undef, $arg ) = @_; |
29
|
|
|
|
|
|
|
|
30
|
1
|
50
|
33
|
|
|
11
|
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
|
1
|
|
|
|
|
2
|
my %input_config = %{$arg}; |
|
1
|
|
|
|
|
5
|
|
36
|
|
|
|
|
|
|
|
37
|
1
|
|
|
|
|
508
|
require Test::File::ShareDir::Object::Dist; |
38
|
|
|
|
|
|
|
|
39
|
1
|
|
|
|
|
8
|
my $dist_object = Test::File::ShareDir::Object::Dist->new(extract_dashes('dists', \%input_config )); |
40
|
1
|
|
|
|
|
201
|
$dist_object->install_all_dists(); |
41
|
1
|
|
|
|
|
6
|
$dist_object->register(); |
42
|
1
|
|
|
|
|
11
|
return 1; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
__END__ |