File Coverage

blib/lib/CHI/Driver/Memcached/t/CHIDriverTests/libmemcached.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package CHI::Driver::Memcached::t::CHIDriverTests::libmemcached;
2             $CHI::Driver::Memcached::t::CHIDriverTests::libmemcached::VERSION = '0.15';
3 1     1   2100 use Test::More;
  1         22444  
  1         12  
4 1     1   370 use strict;
  1         3  
  1         34  
5 1     1   6 use warnings;
  1         1  
  1         33  
6 1     1   6 use base qw(CHI::Driver::Memcached::t::CHIDriverTests::Base);
  1         2  
  1         839  
7              
8             sub testing_driver_class { 'CHI::Driver::Memcached::libmemcached' }
9             sub test_driver_class { 'CHI::Driver::Memcached::Test::Driver::libmemcached' }
10             sub memcached_class { 'Cache::Memcached::libmemcached' }
11              
12             sub right_memcached_loaded : Test(shutdown => 2) {
13             ok(
14             exists( $INC{'Cache/Memcached/libmemcached.pm'} ),
15             "Cache::Memcached::libmemcached loaded"
16             );
17             ok( !exists( $INC{'Cache/Memcached.pm'} ), "Cache::Memcached not loaded" );
18             }
19              
20             1;