App/Prove/Plugin/ShareDirDist.pm

filter: Statementstmt 100% 20 / 20 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 93.1% 27 / 29 CC 2 SCAR 2.6
CC
2
Cov
95%
load
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« App/Yath/Plugin/ShareDirDist.pm ↑ Summary
1 package App::Prove::Plugin::ShareDirDist;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use 5.008001;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use File::Spec;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use File::Basename ();
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 # ABSTRACT: A prove plugin that works with File::ShareDir::Dist
10 2 our $VERSION = '0.07'; # VERSION
11  
12  
13 sub load
14 1 ▶{
Subroutine load: called CC=2 SCAR=7.0
Pod undocumented
15 1 my($class, $p) = @_;
16 1 ▶ if(-d "share")
Branch: 1 branch
BranchTrueFalseTotal
if (-d "share") 1 0 1
17 {
18 1 my $dist_name = File::Basename::basename(File::Spec->rel2abs("."));
19 1 $ENV{PERL_FILE_SHAREDIR_DIST} = "$dist_name=share";
20 }
21 }
22  
23 2 1;
24  
25 __END__
« App/Yath/Plugin/ShareDirDist.pm ↑ Summary