| 1 | package Sys::Path::SPc; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | Sys::Path::SPc - mock for testing | ||
| 6 | |||
| 7 | =cut | ||
| 8 | |||
| 9 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 3 | our $VERSION = '0.19'; | |
| 13 | |||
| 14 | 3 | ▶ | 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 | docdir | ||
| 22 | cachedir | ||
| 23 | logdir | ||
| 24 | spooldir | ||
| 25 | rundir | ||
| 26 | lockdir | ||
| 27 | localedir | ||
| 28 | sharedstatedir | ||
| 29 | webdir | ||
| 30 | srvdir | ||
| 31 | )}; | ||
| 32 | |||
| 33 | 6 | ▶ | sub prefix { File::Spec->catdir('/', 'usr') }; |
|
Subroutine
prefix: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 34 | 14 | ▶ | sub localstatedir { File::Spec->catdir('/', 'var') }; |
|
Subroutine
localstatedir: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 35 | |||
| 36 | 2 | ▶ | sub sysconfdir { File::Spec->catdir('/', 'etc') }; |
|
Subroutine
sysconfdir: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 37 | 2 | ▶ | sub datadir { File::Spec->catdir(__PACKAGE__->prefix, 'share') }; |
|
Subroutine
datadir: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 38 | 2 | ▶ | sub docdir { File::Spec->catdir(__PACKAGE__->prefix, 'share', 'doc') }; |
|
Subroutine
docdir: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 39 | 2 | ▶ | sub localedir { File::Spec->catdir(__PACKAGE__->prefix, 'share', 'locale') }; |
|
Subroutine
localedir: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 40 | 2 | ▶ | sub cachedir { File::Spec->catdir(__PACKAGE__->localstatedir, 'cache') }; |
|
Subroutine
cachedir: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 41 | 2 | ▶ | sub logdir { File::Spec->catdir(__PACKAGE__->localstatedir, 'log') }; |
|
Subroutine
logdir: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 42 | 2 | ▶ | sub spooldir { File::Spec->catdir(__PACKAGE__->localstatedir, 'spool') }; |
|
Subroutine
spooldir: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 43 | 2 | ▶ | sub rundir { File::Spec->catdir(__PACKAGE__->localstatedir, 'run') }; |
|
Subroutine
rundir: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 44 | 2 | ▶ | sub lockdir { File::Spec->catdir(__PACKAGE__->localstatedir, 'lock') }; |
|
Subroutine
lockdir: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 45 | 2 | ▶ | sub sharedstatedir { File::Spec->catdir(__PACKAGE__->localstatedir, 'lib') }; |
|
Subroutine
sharedstatedir: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 46 | 2 | ▶ | sub webdir { File::Spec->catdir(__PACKAGE__->localstatedir, 'www') }; |
|
Subroutine
webdir: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 47 | 2 | ▶ | sub srvdir { File::Spec->catdir('/', 'srv') }; |
|
Subroutine
srvdir: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 48 | |||
| 49 | 3 | 1; | |