Branch Coverage

blib/lib/CHI/Cascade/Rule.pm
Criterion Covered Total %
branch 17 34 50.0


line true false branch
12 23 3 ref $class ? :
15 2 24 defined $opts{'depends'} ? :
26 0 unless ref $opts{'depends'}
26 23 3 if ($opts{'run_instance'})
40 11 29 if (@_) { }
52 0 20 if $self->{'resolved_depends'}
54 0 20 if (ref $self->{'depends'} eq 'CODE') { }
57 0 0 ref $res eq 'ARRAY' ? :
64 0 11 if ref $_ eq 'CODE'
74 0 10 if (@_)
78 0 10 ref $self->{'value_expires'} eq 'CODE' ? :
86 8 10 $trg_obj->locked ? :
95 20 0 unless exists $self->{'ttl'}
97 0 0 if $self->{'ttl_time'}
99 0 0 if (ref $self->{'ttl'} eq 'ARRAY' and @{$self->{'ttl'};} == 2) { }
0 0 elsif (ref $self->{'ttl'} eq 'CODE') { }
113 0 0 unless $_[0]{'run_instance'} and $_[0]{'run_instance'}{'stash'}