Condition Coverage

blib/lib/MCE/Shared/Cache.pm
Criterion Covered Total %
condition 24 92 26.0


and 3 conditions

line !l l&&!r l&&r condition
73 2 0 2 @_ and $_[0] =~ /^(max_keys|max_age)$/
119 0 0 0 ${$gcnt;} and not defined $keys->[0]
144 0 16 9 defined ${$size;} and @{$keys;} - ${$gcnt;} > ${$size;}
149 8 0 1 ${$gcnt;} and not defined $keys->[0]
171 2 0 0 $keys->[$off] >= 0 and $keys->[$off] < &MCE::Shared::Cache::time()
183 1 0 0 ${$gcnt;} and not defined $keys->[0]
212 1 0 0 ${$gcnt;} and not defined $keys->[0]
225 1 0 0 ${$gcnt;} and not defined $keys->[-1]
266 1 0 0 $self->[1][$off] >= 0 and $self->[1][$off] < &MCE::Shared::Cache::time()
412 0 0 0 $keys->[$off] >= 0 and $keys->[$off] < &MCE::Shared::Cache::time()
428 0 0 0 ${$gcnt;} and not defined $keys->[0]
452 0 0 0 defined ${$size;} and @{$keys;} - ${$gcnt;} > ${$size;}
457 0 0 0 ${$gcnt;} and not defined $keys->[0]
555 0 0 0 @keys == 1 and $keys[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/
580 11 0 0 @_ == 1 and $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/
611 0 0 0 @_ == 1 and $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/
631 2 0 0 @_ == 1 and $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/
660 0 0 0 @_ == 2 and defined $secs
677 3 0 2 @_ == 2 and defined $size
767 0 7 0 defined $k and $k >= 0
7 0 0 defined $k and $k >= 0 and $k < $time

or 2 conditions

line l !l condition
81 0 2 $opts->{'max_age'} // undef
82 2 0 $opts->{'max_keys'} // undef
789 0 0 $_[2] // ""
803 0 0 $_[2] || 0
817 0 0 $_[2] || 0
824 0 0 $_[0][0]{$_[1]}-- // 0
831 0 0 $_[0][0]{$_[1]}++ // 0

or 3 conditions

line l !l&&r !l&&!r condition
474 13 0 0 $keys->[$i] < 0 or $keys->[$i] > $time
496 2 0 0 not defined $secs or $secs eq "never"
497 0 0 0 not $secs or $secs eq "now"
519 0 0 4 not defined $size or $size eq "unlimited"
520 1 0 3 not $size or $size < 0