File Coverage

blib/lib/App/Prove/Elasticsearch/Versioner/Env.pm
Criterion Covered Total %
statement 11 11 100.0
branch 2 2 100.0
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 18 18 100.0


line stmt bran cond sub pod time code
1             # ABSTRACT: Determine the version of a system under test via environment variable for upload to elasticsearch
2             # PODNAME: App::Prove::Elasticsearch::Versioner::Env
3              
4             package App::Prove::Elasticsearch::Versioner::Env;
5             $App::Prove::Elasticsearch::Versioner::Env::VERSION = '0.001';
6 1     1   73510 use strict;
  1         9  
  1         21  
7 1     1   5 use warnings;
  1         1  
  1         18  
8 1     1   438 use utf8;
  1         11  
  1         4  
9              
10             sub get_version {
11 2 100   2 1 803 die "TESTSUITE_VERSION not set" unless $ENV{TESTSUITE_VERSION};
12 1         5 return $ENV{TESTSUITE_VERSION};
13             }
14              
15             *get_file_version = \&get_version;
16              
17             1;
18              
19             __END__