blib/lib/CHI/Test/Driver/Readonly.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 14 | 14 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 19 | 20 | 95.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package CHI::Test::Driver::Readonly; | ||||||
2 | $CHI::Test::Driver::Readonly::VERSION = '0.61'; | ||||||
3 | 1 | 1 | 483 | use Carp; | |||
1 | 3 | ||||||
1 | 81 | ||||||
4 | 1 | 1 | 6 | use Moo; | |||
1 | 2 | ||||||
1 | 8 | ||||||
5 | 1 | 1 | 353 | use strict; | |||
1 | 2 | ||||||
1 | 23 | ||||||
6 | 1 | 1 | 4 | use warnings; | |||
1 | 3 | ||||||
1 | 83 | ||||||
7 | extends 'CHI::Driver::Memory'; | ||||||
8 | |||||||
9 | sub store { | ||||||
10 | 4 | 4 | 0 | 8 | my ( $self, $key, $data ) = @_; | ||
11 | |||||||
12 | 4 | 47 | croak "read-only cache"; | ||||
13 | } | ||||||
14 | |||||||
15 | 1; |