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.60'; | ||||||
3 | 1 | 1 | 670 | use Carp; | |||
1 | 3 | ||||||
1 | 72 | ||||||
4 | 1 | 1 | 4 | use Moo; | |||
1 | 1 | ||||||
1 | 8 | ||||||
5 | 1 | 1 | 483 | use strict; | |||
1 | 1 | ||||||
1 | 20 | ||||||
6 | 1 | 1 | 4 | use warnings; | |||
1 | 6 | ||||||
1 | 88 | ||||||
7 | extends 'CHI::Driver::Memory'; | ||||||
8 | |||||||
9 | sub store { | ||||||
10 | 4 | 4 | 0 | 5 | my ( $self, $key, $data ) = @_; | ||
11 | |||||||
12 | 4 | 57 | croak "read-only cache"; | ||||
13 | } | ||||||
14 | |||||||
15 | 1; |