File Coverage

blib/lib/CHI/Test/Driver/Writeonly.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::Writeonly;
2             $CHI::Test::Driver::Writeonly::VERSION = '0.60';
3 1     1   519 use Carp;
  1         2  
  1         69  
4 1     1   4 use strict;
  1         1  
  1         26  
5 1     1   3 use warnings;
  1         2  
  1         32  
6 1     1   4 use Moo;
  1         2  
  1         5  
7             extends 'CHI::Driver::Memory';
8              
9             sub fetch {
10 4     4 0 4 my ( $self, $key ) = @_;
11              
12 4         49 croak "write-only cache";
13             }
14              
15             1;