blib/lib/Test/Effects.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 25 | 65 | 38.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
107 | 0 | 0 | 0 | ref $got eq 'ARRAY' && @{$got;} == 1 |
133 | 0 | 0 | 0 | ref $got eq 'ARRAY' && @{$got;} == 1 |
245 | 46 | 0 | 0 | @_ == 2 and not $expected_ref |
348 | 1 | 0 | 1 | not $is_pattern and $is_libpath |
513 | 0 | 0 | 0 | $min <= $duration && $duration <= $max |
541 | 25 | 0 | 19 | $is_terse and $passed |
576 | 0 | 12 | 5 | $time_one_call and $wantarray |
0 | 8 | 4 | $time_one_call and defined $wantarray |
line | l | !l | condition |
---|---|---|---|
178 | 42 | 0 | eval { do { @{$expected;} } } // 1 |
251 | 46 | 0 | $expected //= {} |
253 | 0 | 1 | ref $expected or 'scalar value' |
269 | 6 | 38 | (caller 0)[10] // {} |
494 | 0 | 0 | $time_spec->{'min'} // 0 |
0 | 0 | $time_spec->[0] // 0 | |
602 | 17 | 0 | $wall_time || 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
261 | 0 | 0 | 1 | ref($spec) =~ / \A (?: HASH | ARRAY ) \Z/msux || !ref($spec) && &looks_like_number($spec) |
299 | 44 | 0 | 0 | $desc //= sprintf('Testing effects_ok() at %s line %d', (caller)[1, 2]) |
307 | 25 | 0 | 19 | !$is_terse || exists $expected->{'timing'} |
391 | 2 | 0 | 2 | $target ~~ $without_list or "/$target" ~~ $without_list |
499 | 0 | 0 | 0 | $time_spec->{'max'} // $INF |
0 | 0 | 0 | $time_spec->[-1] // $INF | |
597 | 0 | 0 | 17 | $cpu_time > $MAX_CPU_TIME or $wall_time > 2 * $MAX_CPU_TIME |
0 | 17 | 0 | $cpu_time > $MAX_CPU_TIME or $wall_time > 2 * $MAX_CPU_TIME or $time_one_call | |
603 | 16 | 1 | 0 | !$cpu_time || $utilization < $MIN_CREDIBLE_UTILIZATION |