Branch Coverage

File:Dpkg/Arch.pm
Coverage:91.8%

line%coveragebranch
129100TFif defined $build_arch
13950TFif $? >> 8
164100TFif defined $cc_host_gnu_type{$CC}
169100TFif ($? >> 8) { }
19850TFif defined $host_arch
20250TFif ($host_gnu_type eq '') { }
20950TFif (defined $host_arch) { }
21950TFunless (defined $host_arch)
255100TFif defined $arch
267100TFif $table_loaded{$table}
27250TFunless open my $table_fh, "<", "$Dpkg::DATADIR/$table"
285100TFif (/^(?!\#)(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)/)
298100TFif (/^(?!\#)(\S+)\s+(\S+)\s+(\S+)/)
309100TFif (/^(?!\#)(\S+)\s+(\S+)/)
320100TFif (/^(?!\#)(\S+)\s+(\S+)/)
324100TFif ($debtuple =~ /<cpu>/) { }
330100TFif exists $debarch_to_debtuple{$da} or exists $debtuple_to_debarch{$dt}
35250TFunless defined $abi and defined $libc and defined $os and defined $cpu and exists $cputable{$cpu} and exists $ostable{"$abi-$libc-$os"}
359100TFunless defined $gnu
36150TFunless defined $gnu_cpu and defined $gnu_os
369100TFif ($gnu_cpu =~ /^$cputable_re{$_cpu}$/)
376100TFif ($gnu_os =~ /^(.*-)?$ostable_re{$_os}$/)
382100TFunless defined $cpu and defined $os
397100TFif ($cpu =~ /^i[4567]86$/) { }
423100TFif (not defined $abi && defined $libc && defined $os && defined $cpu) { }
100TFelsif (exists $debtuple_to_debarch{"$abi-$libc-$os-$cpu"}) { }
436100TFunless defined $arch
440100TFif ($arch =~ /^linux-([^-]*)/)
447100TFif (defined $tuple) { }
449100TFif wantarray
492100TFif (&any(sub {         $_ eq 'any'; } , @tuple)) { }
493100TFif (scalar @tuple == 4) { }
100TFelsif (scalar @tuple == 3) { }
100TFelsif (scalar @tuple == 2) { }
512100TFif (defined $cpu) { }
528100TFif (defined $cpu) { }
546100TFif $a eq $b
551100TFif scalar @a != 4 or scalar @b != 4
567100TFif $alias eq $real or $alias eq "any"
572100TFif scalar @real != 4 or scalar @alias != 4
574100TFif ($alias[0] eq $real[0] || $alias[0] eq 'any' and $alias[1] eq $real[1] || $alias[1] eq 'any' and $alias[2] eq $real[2] || $alias[2] eq 'any' and $alias[3] eq $real[3] || $alias[3] eq 'any')
594100TFif $arch eq "all"
598100TFif scalar @tuple != 4
599100TFif &any(sub {         $_ eq "any"; } , @tuple)
617100TFif ($opts{'positive'}) { }
639100TFif ($arch =~ /^!/) { }
100TFelsif (&debarch_is($host_arch, $arch)) { }
643100TFif (&debarch_is($host_arch, $not_arch)) { }
674100TFif (debarch_is_illegal($arch, %opts))