Branch Coverage

File:Dpkg/Vendor/Debian.pm
Coverage:60.4%

line%coveragebranch
5350TFif ($hook eq 'package-keyrings') { }
50TFelsif ($hook eq 'archive-keyrings') { }
50TFelsif ($hook eq 'archive-keyrings-historic') { }
50TFelsif ($hook eq 'builtin-build-depends') { }
50TFelsif ($hook eq 'builtin-build-conflicts') { }
100TFelsif ($hook eq 'register-custom-fields') { }
50TFelsif ($hook eq 'extend-patch-header') { }
100TFelsif ($hook eq 'update-buildflags') { }
50TFelsif ($hook eq 'builtin-system-build-paths') { }
50TFelsif ($hook eq 'build-tainted-by') { }
50TFelsif ($hook eq 'sanitize-environment') { }
100TFelsif ($hook eq 'backport-version-regex') { }
680TFif ($ch_info->{'Closes'})
980TFif (length $ENV{'LC_ALL'})
18350TFunless (defined $abi and defined $libc and defined $os and defined $cpu)
18750TFunless (defined $abi_bits and defined $abi_endian)
22450TFunless (exists $builtin_pie_arch{$arch})
228100TFif ($abi_bits != 32)
26550TFif ($abi_bits != 32 or not exists $time32_arch{$arch} or $libc eq "musl")
288100TFif (&any(sub {         $arch eq $_; } , 'hurd-i386', 'kfreebsd-i386')) { }
100TFelsif (not defined $use_feature{'abi'}{'time64'}) { }
296100TFif ($arch eq 'i386') { }
305100TFif (&any(sub {         $arch eq $_; } , 'armel', 'armhf', 'hppa', 'm68k', 'mips', 'mipsel', 'powerpc', 'sh4')) { }
311100TFif ($use_feature{'abi'}{'time64'} and not $builtin_feature{'abi'}{'time64'})
31350TFif $libc eq "gnu"
33650TFif ($use_feature{'reproducible'}{'fixfilepath'} or $use_feature{'reproducible'}{'fixdebugpath'})
34750TFif ($build_path =~ m[[^-+:.0-9a-zA-Z~/_]])
35550TFif ($opts_build->has('noopt')) { }
3640TFif ($use_feature{'sanitize'}{'address'} and $use_feature{'sanitize'}{'thread'})
36950TFif ($use_feature{'sanitize'}{'address'} or $use_feature{'sanitize'}{'thread'})
37750TFif (&none(sub {         $os eq $_; } , "linux", "kfreebsd", "hurd") or &any(sub {         $cpu eq $_; } , "alpha", "hppa", "ia64"))
38350TFif (&any(sub {         $cpu eq $_; } , "ia64", "alpha", "hppa", "nios2") or $arch eq "arm")
390100TFif (&none(sub {         $arch eq $_; } , "amd64", "arm64", "armhf", "armel"))
39450TFif (&any(sub {         $cpu eq $_; } , "ia64", "hppa"))
398100TFif (&none(sub {         $cpu eq $_; } , "amd64", "arm64"))
40650TFif ($flags->get_option_value("optimize-level") == 0)
41350TFif ($use_feature{'hardening'}{'relro'} == 0)
41850TFif ($use_feature{'hardening'}{'stackprotector'} == 0)
45950TFif ($optimize_level == 0) { }
473100TFif ($flags->use_feature('abi', 'lfs') and not $abi_builtins{'lfs'}) { }
100TFelsif (not $flags->use_feature('abi', 'lfs') || $abi_builtins{'lfs'} and $cc_abi_time64) { }
482100TFif ($flags->use_feature('abi', 'time64') and not $abi_builtins{'time64'}) { }
100TFelsif (not $flags->use_feature('abi', 'time64') || $abi_builtins{'time64'} and $cc_abi_time64) { }
492100TFif ($flags->use_feature('qa', 'bug-implicit-func')) { }
497100TFif ($flags->use_feature("qa", "bug"))
51150TFif ($flags->use_feature("qa", "canary"))
52450TFif ($flags->use_feature("reproducible", "timeless"))
52950TFif ($flags->use_feature("reproducible", "fixfilepath") or $flags->use_feature("reproducible", "fixdebugpath"))
53650TFif ($flags->use_feature('reproducible', 'fixfilepath')) { }
547100TFif ($flags->use_feature("optimize", "lto"))
55450TFif ($flags->use_feature("sanitize", "address"))
56150TFif ($flags->use_feature("sanitize", "thread"))
56850TFif ($flags->use_feature("sanitize", "leak"))
57250TFif ($flags->use_feature("sanitize", "undefined"))
58450TFif (defined $use_pie and $use_pie and not $hardening_builtins{'pie'}) { }
50TFelsif (defined $use_pie and not $use_pie and $hardening_builtins{'pie'}) { }
59550TFif ($flags->use_feature('hardening', 'stackprotectorstrong')) { }
0TFelsif ($flags->use_feature('hardening', 'stackprotector')) { }
604100TFif ($flags->use_feature("hardening", "stackclash"))
61050TFif ($flags->use_feature("hardening", "fortify"))
61650TFif ($flags->use_feature("hardening", "format"))
62550TFif ($flags->use_feature("hardening", "relro"))
63050TFif ($flags->use_feature("hardening", "bindnow"))
635100TFif ($flags->use_feature("hardening", "branch"))
63850TFif ($cpu eq 'arm64') { }
50TFelsif ($cpu eq 'amd64') { }
64550TFif (defined $flag)
656100TFif ($host_arch eq $build_arch) { }
658100TFif $flag =~ /_FOR_BUILD$/
6730TFunless -l $pathname
6760TFif ($linkname eq "usr$pathname" or $linkname eq "/usr$pathname")
6910TFif -f $_