line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CHI::Driver::BerkeleyDB::t::CHIDriverTests; |
2
|
1
|
|
|
1
|
|
592
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
26
|
|
3
|
1
|
|
|
1
|
|
37
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
22
|
|
4
|
1
|
|
|
1
|
|
2319
|
use CHI::Test; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
use File::Temp qw(tempdir); |
6
|
|
|
|
|
|
|
use base qw(CHI::t::Driver); |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
my $root_dir; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub testing_driver_class { 'CHI::Driver::BerkeleyDB' } |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new_cache_options { |
13
|
|
|
|
|
|
|
my $self = shift; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
$root_dir ||= |
16
|
|
|
|
|
|
|
tempdir( "chi-driver-berkeleydb-XXXX", TMPDIR => 1, CLEANUP => 1 ); |
17
|
|
|
|
|
|
|
return ( $self->SUPER::new_cache_options(), |
18
|
|
|
|
|
|
|
root_dir => "$root_dir/berkeleydb" ); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |