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   1220 use strict;
  2         4  
  2         64  
3 2     2   8 use warnings;
  2         2  
  2         46  
4 2     2   12 use Dir::Self;
  2         2  
  2         20  
5 2     2   104 use File::Spec;
  2         2  
  2         78  
6 2     2   1028 use Hash::Util qw(lock_keys);
  2         4064  
  2         14  
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 => 'http://files.couchbase.com/'.
15             'maven2/org/couchbase/mock/CouchbaseMock/0.5-SNAPSHOT/'.
16             'CouchbaseMock-0.5-20120726.220757-19.jar',
17              
18             #version numbers for libcouchbase and libvbucket
19             LIBCOUCHBASE_RELEASE => '2.0.5_3_gedcb7f1',
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