line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CHI::t::Driver::Subcache; |
2
|
|
|
|
|
|
|
$CHI::t::Driver::Subcache::VERSION = '0.60'; |
3
|
2
|
|
|
2
|
|
12
|
use strict; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
63
|
|
4
|
2
|
|
|
2
|
|
6
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
58
|
|
5
|
2
|
|
|
2
|
|
8
|
use CHI::Test; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
14
|
|
6
|
2
|
|
|
2
|
|
10
|
use base qw(CHI::t::Driver); |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
1352
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub set_standard_keys_and_values { |
9
|
2
|
|
|
2
|
0
|
4
|
my ($self) = @_; |
10
|
|
|
|
|
|
|
|
11
|
2
|
|
|
|
|
18
|
my ( $keys, $values ) = $self->SUPER::set_standard_keys_and_values(); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# keys for file driver have max length of 255 or so |
14
|
|
|
|
|
|
|
# but on windows xp, the full pathname is limited to 255 chars as well |
15
|
2
|
50
|
|
|
|
20
|
$keys->{'large'} = scalar( 'ab' x ( $^O eq 'MSWin32' ? 64 : 120 ) ); |
16
|
|
|
|
|
|
|
|
17
|
2
|
|
|
|
|
9
|
return ( $keys, $values ); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# Skip these tests - the logging will be wrong |
21
|
|
|
|
|
|
|
# |
22
|
|
|
|
|
|
|
sub test_l1_cache : Tests { |
23
|
2
|
|
|
2
|
0
|
583
|
ok(1); |
24
|
2
|
|
|
2
|
|
11
|
} |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
8
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub test_mirror_cache : Tests { |
27
|
2
|
|
|
2
|
0
|
540
|
ok(1); |
28
|
2
|
|
|
2
|
|
511
|
} |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
8
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub test_logging : Tests { |
31
|
2
|
|
|
2
|
0
|
801
|
ok(1); |
32
|
2
|
|
|
2
|
|
518
|
} |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
7
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |