Branch Coverage

File:Dpkg/Deps/Simple.pm
Coverage:64.6%

line%coveragebranch
13150TFif defined $arg
164100TFif ($self->{'tests_dep'}) { }
170100TFunless $dep =~ /^\s*                           # skip leading whitespace               ($pkgname_re)                 # package name               (?:                           # start of optional part                 :                           # colon for architecture                 ([a-zA-Z0-9][a-zA-Z0-9-]*)  # architecture name               )?                            # end of optional part               (?:                           # start of optional part                 \s* \(                      # open parenthesis for version part                 \s* (<<|<=|=|>=|>>|[<>])    # relation part                 \s* ([^\)\s]+)              # do not attempt to parse version                 \s* \)                      # closing parenthesis               )?                            # end of optional part               (?:                           # start of optional architecture                 \s* \[                      # open bracket for architecture                 \s* ([^\]]+)                # don't parse architectures now                 \s* \]                      # closing bracket               )?                            # end of optional architecture               (                 (?:                         # start of optional restriction                 \s* <                       # open bracket for restriction                 \s* [^>]+                   # do not parse restrictions now                 \s* >                       # closing bracket                 )+               )?                            # end of optional restriction               \s*$                          # trailing spaces at end             /x
197100TFif (defined $2)
19850TFif $2 eq "native" and not $self->{'build_dep'}
202100TFif defined $3
203100TFif (defined $4)
206100TFif (defined $5)
209100TFif (defined $6)
245100TFif (defined $self->{'archqual'})
248100TFif (defined $self->{'relation'})
251100TFif (defined $self->{'arches'})
254100TFif (defined $self->{'restrictions'})
25950TFif (defined $fh)
27850TFif my $p_arch_neg = defined $p
27950TFif my $q_arch_neg = defined $q
28350TFif (not defined $p) { }
0TFelsif (not defined $q) { }
0TFelsif (not $p_arch_neg || $q_arch_neg) { }
0TFelsif ($p_arch_neg and $q_arch_neg) { }
0TFelsif (not $p_arch_neg and $q_arch_neg) { }
0TFelsif ($p_arch_neg and not $q_arch_neg) { }
2970TFunless $p_arches{$arch}
2990TFunless $subset
3080TFunless $q_arches{$arch}
3100TFunless $subset
3230TFif $q_arches{substr $arch, 1}
3250TFunless $subset
345100TFif defined $p and defined $q
346100TFunless defined $p or defined $q
359100TFif (not defined $p) { }
50TFelsif (not defined $q) { }
391100TFif ($o->isa('Dpkg::Deps::Simple')) { }
100TFelsif ($o->isa('Dpkg::Deps::AND')) { }
50TFelsif ($o->isa('Dpkg::Deps::OR')) { }
393100TFif $self->{'package'} ne $o->{'package'}
39750TFunless _arch_is_superset($self->{'arches'}, $o->{'arches'})
401100TFunless _arch_qualifier_implies($self->{'archqual'}, $o->{'archqual'})
405100TFunless _restrictions_imply($self->{'restrictions'}, $o->{'restrictions'})
408100TFunless defined $o->{'relation'}
411100TFunless defined $self->{'relation'}
421100TFunless (defined $implication and $implication == 1)
423100TFif defined $res
434100TFif (defined $implication)
43550TFif (not defined $res) { }
4380TFif ($implication) { }
44450TFif defined $res and $res == 1
486100TFunless defined $self->{'package'}
487100TFunless defined $self->{'arches'}
503100TFif (not $self->arch_is_concerned($host_arch)) { }
5200TFif (defined $self->{'arches'}) { }
536100TFunless defined $self->{'package'}
537100TFunless defined $self->{'restrictions'}
552100TFif (not $self->profile_is_concerned($build_profiles)) { }
57350TFunless defined $self->{'package'}
5890TFif defined $eval and $eval == 1
61550TFunless $o->isa("Dpkg::Deps::Simple")
61650TFif $self->is_empty or $o->is_empty
617100TFif $self->{'package'} ne $o->{'package'}
61850TFif defined $self->{'arches'} or defined $o->{'arches'}
62050TFif (not defined $o->{'relation'} and defined $self->{'relation'})
629100TFif (defined $implication)
630100TFif ($implication) { }
63850TFif (defined $rev_implication)
63950TFif ($rev_implication) { }