Branch Coverage

blib/lib/Benchmark/DKbench.pm
Criterion Covered Total %
branch 154 178 86.5


line true false branch
390 0 1 if $^O =~ /android/
395 1 0 if $arch
399 0 1 $Benchmark::DKbench::Config{'usethreads'} ? :
0 1 $Benchmark::DKbench::Config{'usemultiplicity'} ? :
404 1 0 if $physical and $physical > 1
405 1 0 if $cores
406 0 1 if $cores and $cores != $ncpu
407 1 0 if @extra
415 1 5 if $opt->{'datapath'}
418 4 2 $opt->{'time'} ? :
424 2 4 unless $opt->{'no_mce'}
427 4 4 if $opt->{'iter'} > 1
431 2 3 if $opt->{'iter'} > 1
440 1 1 $opt->{'time'} ? :
441 1 1 $opt->{'time'} ? :
447 40 2 unless $stats1->{$bench}{'times'} and $stats2->{$bench}{'times'}
451 2 0 if $res2[2]
452 2 0 if $res2[2]
472 5 3 $opt->{'time'} ? :
474 3 5 unless $opt->{'time'}
478 2 166 if $opt->{'skip_bio'} and $bench =~ /Monomers/
479 2 164 if $opt->{'skip_prove'} and $bench =~ /prove/
480 6 158 if not $opt->{'bio_codons'} and $bench =~ /Codons/
481 6 152 if not $opt->{'time_piece'} and $bench =~ /Time::Piece/
482 2 36 if $opt->{'ver'} and $benchmarks->{$bench}[5] and $opt->{'ver'} < $benchmarks->{$bench}[5]
483 6 144 if $opt->{'exclude'} and $bench =~ /$opt->{'exclude'}/
484 121 23 if $opt->{'include'} and not $bench =~ /$opt->{'include'}/
485 0 23 if ($bench =~ /Bio/)
496 21 2 $opt->{'time'} ? :
497 13 10 if $res ne "Pass"
499 2 21 unless $opt->{'time'}
501 0 23 if $opt->{'sleep'}
503 1 7 unless $i
505 5 2 $opt->{'time'} ? :
513 3 20 unless $opt->{'quick'}
514 22 1 if $opt->{'no_mce'}
528 2 0 if $_->[1] ne "Pass"
541 10 12 $out eq $benchmark->[0] ? :
677 50000 450000 if $_ % 10 == 1
715 0 40 unless length $bytes > length $str
717 26 14 rand 1 > 0.25 ? :
720 0 40 unless $cp eq $str
733 1 1 unless open my $fh, "<:raw", catfile($datadir, "M31.bmp")
738 0 4 unless my $img = "Imager"->new("data", $data, "type", "bmp")
775 0 600 unless compare_obj($obj, $obj2)
809 0 250 if $data_in eq $data_out . $extra
818 0 250 if $data_in eq $data_out . $extra
852 130 1170 if $_ % 10 == 1
856 130 1170 if $_ % 10 == 1
858 130 1170 if $_ % 10 == 1
862 130 1170 if $_ % 10 == 1
867 130 1170 if $_ % 10 == 1
907 1 1 if ($iter < 1) { }
913 2 0 if ($result =~ /Result: (\w*)/) { }
993 7 21 if $sz > 1000
1012 0 75000 if $t->year < 1970
1024 1 1 $opt->{'time'} ? :
1025 1 1 $opt->{'time'} ? :
1027 1 1 unless $opt->{'time'}
1030 40 2 unless $stats->{$bench}{$display}
1035 1 1 unless $opt->{'time'}
1052 1 23 unless @$arr
1058 1 7 unless @$arr
1074 30 13 if ($single) { }
1075 28 2 unless $single * ($_ - $avg) > 2 * $stdev
1077 11 2 unless abs $avg - $_ > 2 * $stdev
1093 0 12 unless open my $fh, "<:$enc", catfile($datadir, "wiki$_.html")
1102 12 5252 $abc ? :
1110 40695 5608 if $chr > 127
1111 21337 24966 if $chr > 591
1127 8377 8100 if ($p > 0.5) { }
4922 3178 elsif ($p > 0.2) { }
1132 1532 1646 $p > 0.1 ? :
1156 1 28700 if $t1 ne $t2
1157 25204 3496 unless $t1
1158 1459 2037 $t1 eq 'ARRAY' ? :
1164 1 1460 if $sz != scalar @$arr2
1166 1 8155 unless compare_obj($arr1->[$_], $arr2->[$_])
1173 1 2038 if scalar keys %$h1 != scalar keys %$h2
1175 1 19943 unless compare_obj($h1->{$_}, $h2->{$_})
1185 434 413 rand 1 < 0.5 ? :
7356 847 rand 1 < 0.9 ? :
1196 1034 1031 rand 1 < 0.5 ? :
17943 2065 rand 1 < 0.9 ? :
1214 796 1940 if ($s[$i])
1231 500 1 if ($args{'token'} =~ /^([a-zA-Z0-9_-]+)=*\.([a-zA-Z0-9_-]*)=*\.([a-zA-Z0-9_-]*)=*(?:\.([a-zA-Z0-9_-]+)=*\.([a-zA-Z0-9_-]+)=*)?$/)
1234 0 500 if (length $5) { }
1245 1 500 if $args{'decode_header'}
1250 45 0 $mono_clock ? :