BerkeleyDB/t/CHIDriverTests.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 2 totaltotal 82.8% 29 / 35 SCAR 6.9
CC
2
Cov
92%
new_cache_options
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
↑ Summary BerkeleyDB.pm »
1 package CHI::Driver::BerkeleyDB::t::CHIDriverTests;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use CHI::Test;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use File::Temp qw(tempdir);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use base qw(CHI::t::Driver);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 my $root_dir;
9  
10 1 ▶sub testing_driver_class { 'CHI::Driver::BerkeleyDB' }
Subroutine testing_driver_class: called CC=1 SCAR=0.0
Pod undocumented
11  
12 sub new_cache_options {
13 1 ▶ my $self = shift;
Subroutine new_cache_options: called CC=2 SCAR=7.6
Pod undocumented
14  
15 1 ▶ $root_dir ||=
Condition33%1/3
$root_dir ||= tempdir("chi-driver-berkeleydb-XXXX", "TMPDIR", 1, "CLEANUP", 1)
l!l&&r!l&&!r
010
MC/DC0%0/2
$root_dir ||= tempdir("chi-driver-berkeleydb-XXXX", "TMPDIR", 1, "CLEANUP", 1)
$root_dir tempdir("chi-driver-berkeleydb-XXXX", "TMPDIR", 1, "CLEANUP", 1)
Truth table33%1/3
A ||= B
A= $root_dirB= tempdir("chi-driver-berkeleydb-XXXX", "TMPDIR", 1, "CLEANUP", 1)
ABresult
1X1
011
000
16 tempdir( "chi-driver-berkeleydb-XXXX", TMPDIR => 1, CLEANUP => 1 );
17 1 return ( $self->SUPER::new_cache_options(),
18 root_dir => "$root_dir/berkeleydb" );
19 }
20  
21 1 1;
↑ Summary BerkeleyDB.pm »