Branch Coverage

blib/lib/Debian/Rules.pm
Criterion Covered Total %
branch 17 64 26.5


line true false branch
78 0 3 if @params == 1 and not ref $params[0]
83 0 3 unless $self->filename or $self->lines
85 0 3 unless $self->lines
87 0 3 if $self->filename
113 2 0 if ($self->lines->[$i] =~ /^%:/ and $i + 1 < @{$self->lines;} and $self->lines->[$i + 1] =~ /^\tdh .*\$\@/)
119 1 1 if ($self->lines->[$i + 1] =~ /--with[ =]quilt/)
145 2 0 unless $self->_parsed
168 0 1 unless $self->_parsed
185 0 0 if $self->is_quiltified
189 0 0 if ($self->is_dhtiny) { }
193 0 0 unless /--with[= ]quilt/
200 0 0 unless grep /quilt\.make/, @$lines
204 0 0 unless grep /QUILT_STAMPFN/, @$lines
210 0 0 unless grep /override_dh_auto_clean:.*unpatch/, @$lines
231 0 8 if ($lines->[$i] eq 'include /usr/share/quilt/quilt.make')
237 0 0 if $i < @$lines and $lines->[$i] eq '' and $$lines[$i - 1] eq ''
248 0 0 if ($lines->[$i] eq '' and $$lines[$i + 1] eq 'override_dh_auto_configure: $(QUILT_STAMPFN)' and $$lines[$i + 2] eq "\tdh_auto_configure" and $$lines[$i + 3] eq '')
274 0 0 if ($lines->[$i] eq 'override_dh_auto_clean: unpatch' and $$lines[$i + 1] eq "\tdh_auto_clean" and $i + 2 > $#$lines || !($$lines[$i + 2] =~ /^\t/))
283 0 0 if ($i > $#$lines) { }
0 0 elsif ($lines->[$i] eq '') { }
284 0 0 if $lines->[-1] eq ''
310 1 1 if $before =~ /\s$/
311 1 1 if $after eq ''
312 1 1 if $before eq ''
329 0 0 unless defined $filename
334 0 0 unless -e $filename
337 0 0 unless open $fh, '<', $filename
357 0 0 unless defined $filename
359 0 0 if (@{$self->lines;}) { }
360 0 0 unless open my $fh, '>', $filename
368 0 0 unless unlink $filename
375 0 3 if $self->filename