File Coverage

PLCB_Config.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 20 20 100.0


line stmt bran cond sub pod time code
1             package PLCB_Config;
2 2     2   2466 use strict;
  2         6  
  2         84  
3 2     2   12 use warnings;
  2         8  
  2         70  
4 2     2   12 use Dir::Self;
  2         4  
  2         18  
5 2     2   86 use File::Spec;
  2         4  
  2         68  
6 2     2   2168 use Hash::Util qw(lock_keys);
  2         25592  
  2         18  
7              
8             #this perl 'hash' contains configuration information necessary
9             #to bootstrap and/or configure the perl couchbase client and run
10             #necessary tests.
11              
12             my $params = {
13             #URL from which to download the mock JAR file for tests
14             COUCHBASE_MOCK_JARURL => 'https://github.com/downloads/mnunberg/' .
15             'perl-Couchbase-Client/CouchbaseMock-0.5-SNAPSHOT.jar',
16              
17             #version numbers for libcouchbase and libvbucket
18             LIBVBUCKET_RELEASE => '1.8.0.4',
19             LIBCOUCHBASE_RELEASE => '1.0.4',
20              
21             LIBEVENT_RELEASE => '2.0.17-stable',
22             };
23              
24              
25             #don't change these, or there may be bad consequences
26             $params->{SRC_DIR} = File::Spec->catfile(__DIR__, 'src');
27             $params->{SRC_INST} = File::Spec->catfile($params->{SRC_DIR}, 'inst');
28              
29             lock_keys(%$params);
30              
31             return $params; #return value