Condition Coverage

blib/lib/CHI/Cascade.pm
Criterion Covered Total %
condition 34 80 42.5


and 3 conditions

line !l l&&!r l&&r condition
117 0 0 8 $value and $value->state & 32
120 5 0 3 $rule->{'run_instance'}{'run_opts'}{'actual_term'} and $rule->{'run_instance'}{'orig_target'} eq $target
134 0 0 0 $value and $value->state & 16
0 0 0 $value and $value->state & 16 and my $trg_obj = $self->{'target_chi'}->get("t:$target")
248 0 0 0 exists $rule->{'depends_catch'} and ref $rule->{'depends_catch'} eq 'CODE'
0 0 0 exists $rule->{'depends_catch'} and ref $rule->{'depends_catch'} eq 'CODE' and eval { do { $exception->isa('CHI::Cascade::Value') } }
0 0 0 exists $rule->{'depends_catch'} and ref $rule->{'depends_catch'} eq 'CODE' and eval { do { $exception->isa('CHI::Cascade::Value') } } and $exception->thrown_from_code
262 20 0 0 defined $ttl and $ttl > 0
20 0 0 defined $ttl and $ttl > 0 and not $should_be_recomputed
288 0 6 5 not $only_from_cache and $start_time = (++$self->{'stats'}{'dependencies_lookup'}, ($dep_values{$dep_target}[1] = $self->value_ref_if_recomputed($dep_values{$dep_target}[0], $dep_target))->state & 32 && &Time::HiRes::time() || ($start_time = $self->target_time($dep_target)) > $self->target_time($target) && $start_time)
293 3 4 0 not $should_be_recomputed || defined $ttl and defined $rule_ttl
7 0 0 not $should_be_recomputed || defined $ttl and defined $rule_ttl and $rule_ttl > 0
4 0 0 not $should_be_recomputed || defined $ttl and defined $rule_ttl and $rule_ttl > 0 and $start_time + $rule_ttl > &Time::HiRes::time()
321 0 6 1 defined $dep_values{$dep_target}[1] and $dep_values{$dep_target}[1]->is_value
346 7 0 5 $run_instance->{'run_opts'}{'actual_term'} and not $only_from_cache
7 5 0 $run_instance->{'run_opts'}{'actual_term'} and not $only_from_cache and $run_instance->{'orig_target'} eq $target
358 0 0 0 exists $_[0]{'stash'} and $_[0]{'stash'}
388 6 3 3 $opts{'actual_term'} and not $view_dependencies
390 12 0 0 defined $run_instance->{'ttl'} and $run_instance->{'ttl'} > 0

or 2 conditions

line l !l condition
369 0 12 $opts{'stash'} && ref $opts{'stash'} eq 'HASH' && $opts{'stash'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
21 0 1 0 ref $class || $class
29 0 1 0 $self->{'target_chi'} ||= $self->{'chi'}
288 1 6 4 ($dep_values{$dep_target}[1] = $self->value_ref_if_recomputed($dep_values{$dep_target}[0], $dep_target))->state & 32 && &Time::HiRes::time() || ($start_time = $self->target_time($dep_target)) > $self->target_time($target) && $start_time
293 3 0 4 $should_be_recomputed || defined $ttl
355 20 0 0 $ret || 'CHI::Cascade::Value'->new
375 3 3 6 $opts{'actual_term'} ||= $self->find($target)->{'actual_term'}
434 0 2 0 $terminated or $from_cache->is_value