Branch Coverage

File:Dpkg/Arch.pm
Coverage:90.8%

line%coveragebranch
13050TFif defined $build_arch
14050TFif $? >> 8
165100TFif defined $cc_host_gnu_type{$CC}
170100TFif ($? >> 8) { }
19950TFif defined $host_arch
20350TFif ($host_gnu_type eq '') { }
21050TFif (defined $host_arch) { }
22050TFunless (defined $host_arch)
256100TFif defined $arch
268100TFif $table_loaded{$table}
27350TFunless open my $table_fh, "<", "$Dpkg::DATADIR/$table"
286100TFif (/^(?!\#)(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)/)
299100TFif (/^(?!\#)(\S+)\s+(\S+)\s+(\S+)/)
310100TFif (/^(?!\#)(\S+)\s+(\S+)/)
321100TFif (/^(?!\#)(\S+)\s+(\S+)/)
325100TFif ($debtuple =~ /<cpu>/) { }
331100TFif exists $debarch_to_debtuple{$da} or exists $debtuple_to_debarch{$dt}
35350TFunless defined $abi and defined $libc and defined $os and defined $cpu and exists $cputable{$cpu} and exists $ostable{"$abi-$libc-$os"}
360100TFunless defined $gnu
36250TFunless defined $gnu_cpu and defined $gnu_os
370100TFif ($gnu_cpu =~ /^$cputable_re{$_cpu}$/)
377100TFif ($gnu_os =~ /^(.*-)?$ostable_re{$_os}$/)
383100TFunless defined $cpu and defined $os
398100TFif ($cpu =~ /^i[4567]86$/) { }
424100TFif (not defined $abi && defined $libc && defined $os && defined $cpu) { }
100TFelsif (exists $debtuple_to_debarch{"$abi-$libc-$os-$cpu"}) { }
437100TFunless defined $arch
441100TFif ($arch =~ /^linux-([^-]*)/)
448100TFif (defined $tuple) { }
450100TFif wantarray
493100TFif (&any(sub {         $_ eq 'any'; } , @tuple)) { }
494100TFif (scalar @tuple == 4) { }
100TFelsif (scalar @tuple == 3) { }
100TFelsif (scalar @tuple == 2) { }
513100TFif (defined $cpu) { }
527100TFif (defined $cpu) { }
545100TFif $a eq $b
550100TFif scalar @a != 4 or scalar @b != 4
566100TFif $alias eq $real or $alias eq "any"
571100TFif scalar @real != 4 or scalar @alias != 4
573100TFif ($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')
593100TFif $arch eq "all"
597100TFif scalar @tuple != 4
598100TFif &any(sub {         $_ eq "any"; } , @tuple)
616100TFif ($opts{'positive'}) { }
638100TFif ($arch =~ /^!/) { }
100TFelsif (&debarch_is($host_arch, $arch)) { }
642100TFif (&debarch_is($host_arch, $not_arch)) { }
673100TFif (debarch_is_illegal($arch, %opts))