File Coverage

blib/lib/Mojo/Cache/Role/Exists.pm
Criterion Covered Total %
statement 4 4 100.0
branch 2 2 100.0
condition n/a
subroutine 2 2 100.0
pod 1 1 100.0
total 9 9 100.0


line stmt bran cond sub pod time code
1             package Mojo::Cache::Role::Exists;
2              
3 1     1   683 use Role::Tiny;
  1         3  
  1         7  
4              
5             our $VERSION = '0.01';
6              
7 5 100   5 1 2817 sub exists { exists $_[0]->{cache} && exists $_[0]->{cache}{$_[1]} }
8              
9             1;
10             __END__