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 1     1   666 use Mojo::Base -role;
  1         3  
  1         6  
3              
4             our $VERSION = '0.02';
5              
6 5 100   5 1 2809 sub exists { CORE::exists $_[0]->{cache} && CORE::exists $_[0]->{cache}{$_[1]} }
7              
8             1;
9             __END__