ExpressConnect/SPc.pm

filter: Statementstmt 70.8% 17 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 7 / 14 Podpod 77.7% 7 / 9 totaltotal 65.9% 31 / 47 CC 1 SCAR 4.1
CC
1
Cov
71%
_path_types
2.0
localstatedir
2.0
cachedir
2.0
CRAP 1.5
« ExpressConnect.pm ↑ Summary
1 package Business::TNT::ExpressConnect::SPc;
2  
3 =head1 NAME
4  
5 meon::Web::SPc - build-time system path configuration
6  
7 =cut
8  
9 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 our $VERSION = '0.02';
13  
14 1 ▶use File::Spec;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 0 ▶sub _path_types {qw(
Subroutine _path_types: not called CC=1 SCAR=6.9
17 prefix
18 localstatedir
19 sysconfdir
20 datadir
21 cachedir
22 logdir
23 sharedstatedir
24 srvdir
25 )};
26  
27 =head1 PATHS
28  
29 =head2 sysconfdir
30  
31 =head2 datadir
32  
33 =head2 cachedir
34  
35 =head2 logdir
36  
37 =head2 sharedstatedir
38  
39 =head2 lockdir
40  
41 =head2 srvdir
42  
43 =cut
44  
45 1 ▶sub prefix { use Sys::Path; Sys::Path->find_distribution_root(__PACKAGE__); };
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine prefix: called CC=1 SCAR=0.0
Pod undocumented
46 0 ▶sub localstatedir { File::Spec->catdir(__PACKAGE__->prefix, 'var') };
Subroutine localstatedir: not called CC=1 SCAR=6.9
Pod undocumented
47  
48 1 ▶sub sysconfdir { File::Spec->catdir(__PACKAGE__->prefix, 'etc') };
Subroutine sysconfdir: called CC=1 SCAR=0.0
Pod documented
49 2 ▶sub datadir { File::Spec->catdir(__PACKAGE__->prefix, 'share') };
Subroutine datadir: called CC=1 SCAR=0.0
Pod documented
50 0 ▶sub cachedir { File::Spec->catdir(__PACKAGE__->localstatedir, 'cache') };
Subroutine cachedir: not called CC=1 SCAR=6.9
Pod documented
51 0 ▶sub logdir { File::Spec->catdir(__PACKAGE__->localstatedir, 'log') };
Subroutine logdir: not called CC=1 SCAR=6.9
Pod documented
52 0 ▶sub sharedstatedir { File::Spec->catdir(__PACKAGE__->localstatedir, 'lib') };
Subroutine sharedstatedir: not called CC=1 SCAR=6.9
Pod documented
53 0 ▶sub lockdir { File::Spec->catdir(__PACKAGE__->localstatedir, 'lock') };
Subroutine lockdir: not called CC=1 SCAR=6.9
Pod documented
54 0 ▶sub srvdir { File::Spec->catdir(__PACKAGE__->prefix, 'srv') };
Subroutine srvdir: not called CC=1 SCAR=6.9
Pod documented
55  
56 1 1;
« ExpressConnect.pm ↑ Summary