Branch Coverage

blib/lib/Dpkg/Shlibs/SymbolFile.pm
Criterion Covered Total %
branch 159 204 77.9


line true false branch
80 99 18107 if exists $internal_symbol{$symbol}
84 8 18099 if not do { $include_groups }->{'aeabi'} and $symbol =~ /^__aeabi_/
89 8 18091 if not do { $include_groups }->{'gomp'} and $symbol =~ /^\.gomp_critical_user_/
101 41 0 if (exists $self->{'file'})
102 35 6 if -e $self->{'file'}
122 0 0 unless exists $has{$objid}
133 88 0 if (defined $soname) { }
135 88 0 defined $obj ? :
148 59 0 if (defined $soname) { }
166 5236 9 exists $opts{'base'} ? :
168 1 5244 $opts{'dummy'} ? :
170 5245 0 if ($ret)
181 79 14354 if ($symbol->is_pattern) { }
182 46 33 if (my $alias_type = $symbol->get_alias_type) { }
203 40 5202 ref $base ? :
211 18 35 if (exists $state->{'seen'}) { }
212 2 16 if exists $state->{'seen'}{$file}
219 35 16 unless (ref $state->{'obj_ref'})
226 5236 87 if (/^(?:\s+|#(?:DEPRECATED|MISSING): ([^#]+)#\s*)(.*)/) { }
18 69 elsif (/^(\(.*\))?#include\s+"([^"]+)"/) { }
10 59 elsif (/^#|^$/) { }
14 45 elsif (/^\|\s*(.*)$/) { }
4 41 elsif (/^\*\s*([^:]+):\s*(.*\S)\s*$/) { }
41 0 elsif (/^(\S+)\s+(.*)$/) { }
227 0 5236 unless (defined ${$$state{'obj_ref'};})
231 44 5192 $1 ? :
233 5236 0 if ($self->create_symbol($2, 'base', $sym)) { }
244 6 12 if (defined $tagspec)
263 2 39 if (exists $self->{'objects'}{${$state->{'obj_ref'};}}) { }
281 0 0 if (not $self->has_object($objid)) { }
297 2 28 if (exists $opts{'package'} and not $opts{'template_mode'})
300 14 16 if defined $fh
301 16 14 if defined wantarray
304 2 16 if (exists $opts{'package'} and not $opts{'template_mode'})
307 10 8 if defined $fh
308 8 10 if defined wantarray
313 2 0 if (exists $opts{'package'} and not $opts{'template_mode'})
316 2 0 if defined $fh
317 0 2 if defined wantarray
321 4 26 if ($opts{'template_mode'}) { }
330 0 13980 if $sym->{'deprecated'} and not $opts{'with_deprecated'}
333 84 13778 unless $opts{'template_mode'} or $sym->arch_is_concerned($self->get_arch)
335 4672 9224 if defined $fh
336 9224 4672 if defined wantarray
338 0 13896 if ($opts{'with_pattern_matches'} and $sym->is_pattern)
342 0 0 if defined $fh
343 0 0 if defined wantarray
356 436 9196 ref $refsym ? :
364 0 9632 ref $sonames eq 'ARRAY' ? :
367 0 9632 unless defined $obj
371 545 18678 if (exists $all_aliases->{$type} and keys %{$$all_aliases{$type};})
374 544 0 if (my $alias = $converter->convert_to_alias($name))
375 72 472 if ($alias and exists $aliases->{$alias})
377 72 0 if &$pattern_ok($pattern)
385 9559 72 unless (defined $pattern)
387 123 144 if (&$pattern_ok($p) and $p->matches_rawname($name))
393 195 9436 if (defined $pattern)
394 0 195 wantarray ? :
408 0 33 unless $soname
413 31 2 unless (defined $groups)
415 0 31 if (defined $groups)
421 2 31 if (defined $groups)
428 18206 0 $sym->{'version'} ? :
430 115 18091 if (symbol_is_internal($sym->{'name'}, \%include_groups))
431 99 16 unless defined $symobj
433 8 8 if ($symobj->has_tag('allow-internal')) { }
0 8 elsif ($symobj->has_tag('ignore-blacklist')) { }
448 4 29 unless ($self->has_object($soname))
459 8830 9196 if ($sym = $self->lookup_symbol($name, $obj, 1)) { }
466 195 9000 if (defined $pattern) { }
480 166 18025 unless (exists $dynsyms{$sym->get_symbolname})
494 0 0 scalar keys %{$$self{'objects'};} ? :
504 36421 33614 ref $soname ? :
532 0 4 if defined $so_object->{'minver_cache'}[$dep_id]
535 2 14 if $dep_id != $sym->{'dep_id'}
537 6 8 if (&version_compare($minver, $sym->{'minver'}) > 0)
552 56 8 if (my $obj = $self->get_object($soname))
553 2 54 if (exists $obj->{'fields'}{$name})
565 9302 36302 ref $refsym ? :
567 64 45540 ref $sonames eq 'ARRAY' ? :
568 37024 8580 if (my $obj = $self->get_object($so))
570 26591 8 if ($sym and $inc_deprecated || !$sym->{'deprecated'})
572 2 26589 wantarray ? :
586 1 87 unless ref $refpat
588 88 0 if ($refpat and $refpat->is_pattern)
589 0 88 ref $sonames eq 'ARRAY' ? :
590 88 0 if (my $obj = $self->get_object($soname))
592 41 47 if (my $type = $refpat->get_alias_type) { }
47 0 elsif ($refpat->get_pattern_type eq 'generic') { }
593 41 0 if (exists $obj->{'patterns'}{'aliases'}{$type})
598 47 73 if ($inc_deprecated || !$p->{'deprecated'} and $p->equals($refpat, 'versioning', 0))
606 86 2 if ($pat and $inc_deprecated || !$pat->{'deprecated'})
607 0 86 wantarray ? :
620 0 0 unless (defined $sym)
629 0 21 exists $opts{'with_optional'} ? :
632 0 21 unless $ref->has_object($soname)
635 9427 58 if $with_optional or not $_->is_optional
641 8823 478 if (defined $refsym) { }
656 446 8855 if $isnew
660 35 14 if $with_optional or not $_->is_optional
667 2 33 unless (defined $refpat and $refpat->is_legitimate($self->get_arch))
687 0 0 unless $ref->get_object($soname)