lib/CHI/Driver/Rethinkdb/t/CHIDriverTests.pm

filter: Statementstmt 94.4% 17 / 18 Branchbran n/a Conditioncond 50.0% 2 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 75.0% 6 / 8 Podpod 0.0% 0 / 4 totaltotal 69.4% 25 / 36 SCAR 11.1
CC
3
Cov
86%
new_cache_options
3.3
supports_get_namespaces
2.0
BEGIN
1.0
CRAP 3.0
« lib/CHI/Driver/Rethinkdb.pm ↑ Summary blib/lib/CHI/Driver/Rethinkdb/t/CHIDriverTests.pm »
1 package CHI::Driver::Rethinkdb::t::CHIDriverTests;
2 1 $CHI::Driver::Rethinkdb::t::CHIDriverTests::VERSION = '0.1.1';
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use CHI::Test;
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 ▶sub testing_driver_class { 'CHI::Driver::Rethinkdb' }
Subroutine testing_driver_class: called CC=1 SCAR=0.0
Pod undocumented
9 0 ▶sub supports_get_namespaces { 0 }
Subroutine supports_get_namespaces: not called CC=1 SCAR=6.9
Pod undocumented
10  
11 sub new_cache_options {
12 1 ▶ my $self = shift;
Subroutine new_cache_options: called CC=3 SCAR=12.0
Pod undocumented
13  
14 return (
15 $self->SUPER::new_cache_options(),
16 port => $ENV{RETHINKDB_PORT} || 28015,
17 1 ▶ host => $ENV{RETHINKDB_HOST} || 'localhost'
Condition50%2/4
$ENV{'RETHINKDB_PORT'} || 28015
l!l
01
$ENV{'RETHINKDB_HOST'} || 'localhost'
l!l
01
MC/DC0%0/1
$ENV{'RETHINKDB_PORT'} || 28015
$ENV{'RETHINKDB_PORT'}
MC/DC0%0/1
$ENV{'RETHINKDB_HOST'} || 'localhost'
$ENV{'RETHINKDB_HOST'}
Truth table50%1/2
A
A= $ENV{'RETHINKDB_PORT'}
Aresult
11
00
Truth table50%1/2
A
A= $ENV{'RETHINKDB_HOST'}
Aresult
11
00
18 );
19  
20 }
21  
22 ▶sub test_multiple_processes { }
Subroutine test_multiple_processes: not called CC=1 SCAR=0.0
Pod undocumented
23  
24  
25 1 1;
26  
« lib/CHI/Driver/Rethinkdb.pm ↑ Summary blib/lib/CHI/Driver/Rethinkdb/t/CHIDriverTests.pm »