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.61';
3 1     1   479 use Carp;
  1         3  
  1         80  
4 1     1   6 use strict;
  1         2  
  1         20  
5 1     1   5 use warnings;
  1         2  
  1         24  
6 1     1   5 use Moo;
  1         2  
  1         8  
7             extends 'CHI::Driver::Memory';
8              
9             sub fetch {
10 4     4 0 11 my ( $self, $key ) = @_;
11              
12 4         50 croak "write-only cache";
13             }
14              
15             1;