Branch Coverage

blib/lib/Dpkg/Substvars.pm
Criterion Covered Total %
branch 22 30 73.3


line true false branch
90 3 1 if ($arg)
91 3 0 if -e $arg
188 6 24 if /^\s*\#/ or not /\S/
190 0 24 unless (/^(\w[-:0-9A-Za-z]*)\=(.*)$/)
225 0 3 unless (defined $vs)
329 1 4 if length $3 < length $rhs
331 0 5 if ($count >= $maxsubsts)
338 4 1 if (defined $self->{'vars'}{$vn}) { }
343 0 4 if ($self->{'attr'}{$vn} & 4)
350 1 0 unless $opts{'no_warn'}
368 42 1 if $self->{'attr'}{$vn} & 1
372 0 1 if $self->{'vars'}{$vn} eq ''
407 21 15 if &$remove($vn) or not &$keep($vn)
428 11 13 if $self->{'attr'}{$vn} & 2
430 0 13 if defined $fh