line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
27657
|
use 5.006; # pragmas |
|
2
|
|
|
|
|
7
|
|
2
|
2
|
|
|
2
|
|
14
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
53
|
|
3
|
2
|
|
|
2
|
|
19
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
195
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Test::File::ShareDir::Dist; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '1.001002'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# ABSTRACT: Simplified dist oriented ShareDir tester |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY |
12
|
|
|
|
|
|
|
|
13
|
2
|
|
|
2
|
|
1116
|
use File::ShareDir 1.00 qw(); |
|
2
|
|
|
|
|
12829
|
|
|
2
|
|
|
|
|
60
|
|
14
|
2
|
|
|
2
|
|
1243
|
use Test::File::ShareDir::Utils qw( extract_dashes ); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
392
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub import { |
28
|
1
|
|
|
1
|
|
16
|
my ( undef, $arg ) = @_; |
29
|
|
|
|
|
|
|
|
30
|
1
|
50
|
33
|
|
|
12
|
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
|
|
|
|
|
1
|
my %input_config = %{$arg}; |
|
1
|
|
|
|
|
6
|
|
36
|
|
|
|
|
|
|
|
37
|
1
|
|
|
|
|
531
|
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
|
|
|
|
|
118
|
$dist_object->install_all_dists(); |
41
|
1
|
|
|
|
|
8
|
$dist_object->register(); |
42
|
1
|
|
|
|
|
18
|
return 1; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
__END__ |