Branch Coverage

File:Dpkg/Shlibs/Objdump.pm
Coverage:54.8%

line%coveragebranch
390TFif ($id)
560TFif (defined $sym and $sym->{'defined'})
650TFif ($self->has_object($objid))
1790TFif exists $format{$file}
1830TFunless open my $fh, "<", $file
1850TFif (not defined $rc) { }
0TFelsif ($rc != 64) { }
1970TFunless $elf{'magic'} eq "\177ELF"
1980TFunless $elf{'vertype'} == 1
2010TFif ($elf{'bits'} == 1) { }
0TFelsif ($elf{'bits'} == 2) { }
2080TFif ($elf{'endian'} == 1) { }
0TFelsif ($elf{'endian'} == 2) { }
2350TFunless open my $file_fh, "<", $file
2370TFif (read($file_fh, $header, 4) == 4)
2380TFif $header =~ /^\177ELF$/
26350TFif ($file)
2900TFif (&get_build_arch() ne &get_host_arch())
2920TFif &find_command($od)
3010TFunless $file
3080TFunless (defined $self->{'exec_abi'})
3150TFunless open my $objdump, "-|", $OBJDUMP, "-w", "-f", "-p", "-T", "-R", $file
328100TFif length $_ == 0
330100TFif (/^DYNAMIC SYMBOL TABLE:/) { }
100TFelsif (/^DYNAMIC RELOCATION RECORDS/) { }
100TFelsif (/^Dynamic Section:/) { }
100TFelsif (/^Program Header:/) { }
100TFelsif (/^Version definitions:/) { }
100TFelsif (/^Version References:/) { }
351100TFif ($section eq 'dynsym') { }
100TFelsif ($section eq 'dynreloc') { }
100TFelsif ($section eq 'dyninfo') { }
100TFelsif ($section eq 'program') { }
100TFelsif ($section eq 'none') { }
35450TFif (/^\S+\s+(\S+)\s+(.+)$/) { }
360100TFif (/^\s*NEEDED\s+(\S+)/) { }
100TFelsif (/^\s*SONAME\s+(\S+)/) { }
100TFelsif (/^\s*HASH\s+(\S+)/) { }
100TFelsif (/^\s*GNU_HASH\s+(\S+)/) { }
50TFelsif (/^\s*RUNPATH\s+(\S+)/) { }
50TFelsif (/^\s*RPATH\s+(\S+)/) { }
3760TFunless (scalar @{$self->{'RPATH'};})
381100TFif (/^\s*INTERP\s+/)
385100TFif (/^\s*.+:\s*file\s+format\s+(\S+)$/) { }
100TFelsif (/^architecture:\s*\S+,\s*flags\s*\S+:$/) { }
44750TFif ($line =~ /$dynsym_re/x) { }
0TFelsif ($line =~ /^[0-9a-f]+ (.{7})\s+(\S+)\s+[0-9a-f]+/) { }
0TFelsif ($line =~ /^REG_G\d+\s+/) { }
453100TFif (defined $ver and $ver =~ /^$vis_re$/)
459100TFif defined $vis
477100TFif (defined $ver and $ver =~ /^\((.*)\)$/)
500100TFunless $sym->{'defined'}
507100TFif $sym->{'version'}
514100TFunless exists $self->{'dynrelocs'}{$reloc}
51550TFunless $self->{'dynrelocs'}{$reloc} =~ /^R_.*_COPY$/
526100TFunless $self->{'SONAME'}
527100TFif ($symbol->{'version'}) { }
541100TFif (exists $self->{'dynsyms'}{$name})
54450TFunless ($name =~ /@/)
54550TFif (exists $self->{'dynsyms'}{$name . '@Base'})
554100TFif $_->{'defined'} and $_->{'dynamic'}
560100TFif not $_->{'defined'}