| 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
| |||||||||||
| 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__ | ||||||||||