Magpie/Constants.pm

filter: Statementstmt 100% 21 / 21 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 96.5% 28 / 29 CC 1 SCAR 0.0
CC
1
Cov
96%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Magpie/Action/WebStatic.pm ↑ Summary Magpie.pm »
1 #
2 # This file is part of App-Magpie
3 #
4 # This software is copyright (c) 2011 by Jerome Quelin.
5 #
6 # This is free software; you can redistribute it and/or modify it under
7 # the same terms as the Perl 5 programming language system itself.
8 #
9 3 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 package App::Magpie::Constants;
14 # ABSTRACT: Various constants
15 3 $App::Magpie::Constants::VERSION = '2.010';
16 3 ▶use Exporter::Lite;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 3 ▶use File::ShareDir qw{ dist_dir };
Subroutine BEGIN: called CC=1 SCAR=0.0
18 3 ▶use Path::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
19
20 3 our @EXPORT_OK = qw{ $SHAREDIR };
21  
22 3 ▶our $SHAREDIR = -e path("dist.ini")
Branch: 1 branch
BranchTrueFalseTotal
-e path('dist.ini') ? : 3 0 3
23 ? path("share")
24 : path( dist_dir("App-Magpie") );
25  
26  
27 3 1;
28  
29 __END__
« Magpie/Action/WebStatic.pm ↑ Summary Magpie.pm »