Branch Coverage

blib/lib/Test/Effects.pm
Criterion Covered Total %
branch 88 144 61.1


line true false branch
68 0 0 unless defined $_[2]
87 0 0 unless defined $_[2]
104 0 4 unless defined $_[2]
107 0 0 ref $got eq 'ARRAY' && @{$got;} == 1 ? :
113 4 1 if (&looks_like_number($expected)) { }
130 0 0 unless defined $_[2]
133 0 0 ref $got eq 'ARRAY' && @{$got;} == 1 ? :
169 93 71 unless $was_were
180 22 0 $was_were ? :
0 20 $was_were ? :
22 20 $count == 1 ? :
188 4 0 if (eval { do { require Carp } }) { }
245 0 46 if (@_ == 2 and not $expected_ref)
252 1 45 if (ref $expected ne 'HASH')
259 1 44 if (exists $expected->{'timing'})
263 1 0 unless ($valid_time)
274 6 38 exists $expected->{'ONLY'} ? :
279 16 28 exists $expected->{'TIME'} ? :
281 37 7 unless ($is_only)
286 17 20 ref $warn eq 'ARRAY' ? :
292 14 206 unless exists $expected->{$option}
293 20 186 if ($expected->{$option} ~~ $BAD_NULL_VALUE_FOR{$option})
304 24 20 exists $expected->{'VERBOSE'} ? :
308 25 19 if ($preview_desc)
310 0 25 exists $expected->{'timing'} ? :
324 19 25 unless ($preview_desc)
333 4 40 if (exists $expected->{'WITHOUT'})
337 4 0 if (ref $without_list ne 'ARRAY')
348 2 2 if (not $is_libpath) { }
1 1 elsif (not $is_pattern and $is_libpath) { }
349 0 2 unless ($module_name =~ s[::][/]gmsux)
350 0 0 $is_pattern ? :
0 0 $is_pattern ? :
0 0 $is_pattern ? :
359 1 1 if (not $is_pattern) { }
369 0 1 if ($module_name =~ m[\A /]ux) { }
381 2 2 if ($is_libpath)
391 2 2 if ($target ~~ $without_list or "/$target" ~~ $without_list)
402 0 44 if (@return_specs > 1)
414 1 43 if (exists $expected->{'return'})
423 5 39 if (exists $expected->{'void_return'}) { }
9 30 elsif (exists $expected->{'scalar_return'}) { }
5 25 elsif (exists $expected->{'list_return'}) { }
424 0 5 if (defined $expected->{'void_return'})
429 5 0 if ($timed_test) { }
440 4 5 if ($timed_test) { }
453 5 0 if ($timed_test) { }
465 3 22 if ($timed_test) { }
476 206 14 if (exists $expected->{$info})
480 113 93 $expected->{$info} ~~ $NULL_VALUE_FOR{$info} ? :
488 0 44 if (exists $expected->{'timing'})
494 0 0 $spec_type eq 'ARRAY' ? :
0 0 $spec_type eq 'HASH' ? :
499 0 0 $spec_type eq 'ARRAY' ? :
0 0 $spec_type eq 'HASH' ? :
507 0 0 $duration ? :
508 0 0 $speed > 0 ? :
0 0 $speed > 1 ? :
516 0 0 $duration > $MS_THRESHHOLD ? :
521 0 0 unless ($in_range)
527 0 0 if (not $in_range)
541 19 25 if ($is_terse and $passed) { }
0 25 elsif ($is_terse) { }
550 17 27 if ($timed_test)
560 22 0 if require Time::HiRes
576 5 12 if ($time_one_call and $wantarray) { }
4 8 elsif ($time_one_call and defined $wantarray) { }
597 17 0 if $cpu_time > $MAX_CPU_TIME or $wall_time > 2 * $MAX_CPU_TIME or $time_one_call
603 17 0 !$cpu_time || $utilization < $MIN_CREDIBLE_UTILIZATION ? :
607 17 0 if ($time_one_call) { }
608 1 16 if ($timing < $MS_THRESHHOLD) { }
614 5 12 $wantarray ? :