Condition Coverage

checks/binaries.pm
Criterion Covered Total %
condition 96 148 64.8


and 3 conditions

line !l l&&!r l&&r condition
74 15960 840 0 defined $result->{'source'} and $result->{'source-regex'}
179 0 0 0 $foo eq 'UND' and $LFS_SYMBOLS->known($sym)
190 5445 5246 5 $sec =~ /^GLIBC_.*/ and $sym =~ /\A _?+ _?+ mcount \Z/msx
195 10105 14 572 $foo eq '.text' and $sec eq 'Base'
10119 572 0 $foo eq '.text' and $sec eq 'Base' and $sym eq '__gmon_start__'
204 1443 9 9 %unharded_functions and not @hardened_functions
1452 0 9 %unharded_functions and not @hardened_functions and not $built_with_golang
9 0 9 %unharded_functions and not @hardened_functions and not $built_with_golang and $arch_hardening->{'hardening-no-fortify-functions'}
213 152 1309 0 defined $has_lfs and not $has_lfs
249 0 46 11 defined $dir and $path =~ m[lib/$dir/[^/]++$]
250 0 46 0 defined $dir and $path =~ m[usr/lib/$dir/[^/]++$]
280 5319 238 34 @sonames and not $match_found
352 5 0 0 $ARCH_64BIT_EQUIVS->known($arch) and $fname =~ m[^lib/modules/]
359 0 0 0 $bitre and $fileinfo =~ /$bitre/
402 44 17 5 $fileinfo =~ /executable/ and $strings =~ /^Caml1999X0[0-9][0-9]$/m
441 5 5 5 $directories{$rpath} and not $rpath =~ m[^(?:/usr)?/lib(?:/$madir)?/?\z]
476 1302 0 0 $fname =~ m[usr/lib/python3/.+\.cpython-\d+([a-z]+)\.so$] and not $1 =~ /d/
481 12 0 0 index($strings, 'numpy') > -1 and $strings =~ / module\ compiled\ against\ ABI\ version\ (?:0x)?%x \ but\ this\ version\ of\ numpy\ is\ (?:0x)?%x /x
541 47 0 0 exists $objdump->{'INTERP'} and $objdump->{'INTERP'} =~ m[/lib/klibc-\S+\.so]
569 1175 0 14 $no_libc and not $fname =~ m[/libc\b]
582 5 0 1184 $arch_hardening->{'hardening-no-relro'} and not $built_with_golang
5 1175 9 $arch_hardening->{'hardening-no-relro'} and not $built_with_golang and not $objdump->{'PH'}{'RELRO'}
588 5 0 1184 $arch_hardening->{'hardening-no-bindnow'} and not $built_with_golang
5 1025 159 $arch_hardening->{'hardening-no-bindnow'} and not $built_with_golang and not exists $objdump->{'FLAGS_1'}{'NOW'}
594 5 0 1184 $arch_hardening->{'hardening-no-pie'} and not $built_with_golang
5 1141 43 $arch_hardening->{'hardening-no-pie'} and not $built_with_golang and $objdump->{'ELF-TYPE'} eq 'EXEC'
610 7 0 386 $needs_libc and not $pkg =~ /^libc[\d.]+(?:-|\z)/
661 5591 0 0 $uses_numpy_c_abi and not $pkg =~ /\A python3?-numpy \Z/msx
666 0 0 0 $depends->matches(qr/^python-numpy \(>[>=][^\|]+$/, $vflags) and $depends->matches(qr/^python-numpy \(<[<=][^\|]+$/, $vflags)

or 2 conditions

line l !l condition
142 1365 96 $info->file_info($file) // ''
157 38 345 $SONAME{$soname} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
63 840 0 5320 $opt eq 'source' or $opt eq 'libname'
273 230 8 76 lc $expected_name eq $pkg or lc $expected_name eq $base_pkg
293 1314 51 20105 $fileinfo =~ /^[^,]*\bELF\b/ or $fileinfo =~ /\bcurrent ar archive\b/
346 5 0 1309 $arch eq 'all' or not $ARCH_REGEX->known($arch)
352 0 0 5 $fname =~ m[(?:^|/)lib(x?\d{2})/] or $fname =~ m[^emul/ia(\d{2})]
397 0 65 86 $fname =~ /\.k?o$/ or $pkg =~ /-dbg$/
65 0 86 $fname =~ /\.k?o$/ or $pkg =~ /-dbg$/ or $pkg =~ /debug/
65 20 66 $fname =~ /\.k?o$/ or $pkg =~ /-dbg$/ or $pkg =~ /debug/ or $fname =~ m[/lib/debug/]
20 0 66 $fname =~ /\.k?o$/ or $pkg =~ /-dbg$/ or $pkg =~ /debug/ or $fname =~ m[/lib/debug/] or $fname =~ /\.gox$/o
412 5 0 1158 $fname =~ m[/lib/debug/]o or $fname =~ m[/lib/profile/]o
422 20 0 1294 exists $objdump->{'RPATH'} or exists $objdump->{'RUNPATH'}
426 75 0 75 $file->is_dir or $file->is_symlink
461 126 1188 0 $fileinfo =~ /executable/ or $fileinfo =~ /shared object/
476 12 0 1302 $fname =~ m[usr/lib/(?:pyshared/)?python2\.\d+/.*(?
498 25 0 35 exists $objdump->{'SH'}{'.debug_line'} or exists $objdump->{'SH'}{'.zdebug_line'}
0 0 35 exists $objdump->{'SH'}{'.debug_line'} or exists $objdump->{'SH'}{'.zdebug_line'} or exists $objdump->{'SH'}{'.debug_str'}
0 0 35 exists $objdump->{'SH'}{'.debug_line'} or exists $objdump->{'SH'}{'.zdebug_line'} or exists $objdump->{'SH'}{'.debug_str'} or exists $objdump->{'SH'}{'.zdebug_str'}
503 10 5 5 exists $objdump->{'NEEDED'} or $fileinfo =~ /statically linked/
666 0 0 0 $depends->matches(qr/^python3?-numpy-abi\d+$/, $vflags) or $depends->matches(qr/^python-numpy \(>[>=][^\|]+$/, $vflags) and $depends->matches(qr/^python-numpy \(<[<=][^\|]+$/, $vflags)