Incunabula/Devel/TestHelper.pm

filter: Statementstmt 63.1% 12 / 19 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 60.0% 15 / 25 CC 2 SCAR 11.0
CC
2
Cov
57%
test_data_directory
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
↑ Summary Incunabula.pm »
1 1 ▶use Renard::Incunabula::Common::Setup;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Renard::Incunabula::Devel::TestHelper;
3 # ABSTRACT: A test helper with functions useful for various Renard distributions
4 1 $Renard::Incunabula::Devel::TestHelper::VERSION = '0.005';
5 1 ▶use Renard::Incunabula::Common::Types qw(Dir);
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 0 ▶classmethod test_data_directory() :ReturnType(Dir) {
Subroutine test_data_directory: not called CC=2 SCAR=17.9
8 0 require Path::Tiny;
9 0 Path::Tiny->import();
10  
11 0 ▶ if( not defined $ENV{RENARD_TEST_DATA_PATH} ) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $ENV{"RENARD_TEST_DATA_PATH"}) 0 0 0
12 0 die "Must set environment variable RENARD_TEST_DATA_PATH to the path for the test-data repository";
13 }
14 0 return path( $ENV{RENARD_TEST_DATA_PATH} );
15 1 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 1 1;
18  
19 __END__
↑ Summary Incunabula.pm »