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