Branch Coverage

blib/lib/Dpkg/Changelog.pm
Criterion Covered Total %
branch 88 158 55.7


line true false branch
133 0 6 if ($self->{'verbose'})
134 0 0 if ($line) { }
175 4 12 if (wantarray) { }
180 0 0 if ($e->[3]) { }
230 0 70 if (defined $r->{'offset'} and not defined $r->{'count'})
231 0 0 if $self->{'verbose'}
236 0 40 if (defined $r->{'count'} || defined $r->{'offset'} and defined $r->{'from'} || defined $r->{'since'} || defined $r->{'to'} || defined $r->{'until'})
241 0 0 if $self->{'verbose'}
247 0 70 if (defined $r->{'from'} and defined $r->{'since'})
249 0 0 if $self->{'verbose'}
252 0 70 if (defined $r->{'to'} and defined $r->{'until'})
254 0 0 if $self->{'verbose'}
262 0 818 unless defined $version
266 2 68 if (defined $r->{'since'} and not exists $versions{$r->{'since'}})
270 0 14 if (&version_compare_relation($v, '<<', $r->{'since'}))
275 2 0 unless (exists $versions{$r->{'since'}})
282 0 70 if (defined $r->{'from'} and not exists $versions{$r->{'from'}})
287 0 0 if (&version_compare_relation($v, '>>', $r->{'from'}))
291 0 0 if (defined $oldest) { }
298 0 70 if (defined $r->{'until'} and not exists $versions{$r->{'until'}})
303 0 0 if (&version_compare_relation($v, '>>', $r->{'until'}))
307 0 0 if (defined $oldest) { }
314 0 70 if (defined $r->{'to'} and not exists $versions{$r->{'to'}})
318 0 0 if (&version_compare_relation($v, '<<', $r->{'to'}))
323 0 0 unless (exists $versions{$r->{'to'}})
330 0 70 if (defined $r->{'since'} and $data->[0]->get_version eq $r->{'since'})
334 0 70 if (defined $r->{'until'} and $data->[-1]->get_version eq $r->{'until'})
345 0 84 unless defined $res
346 84 0 if (wantarray) { }
347 2 82 if $range->{'reverse'}
357 2 82 if $range->{'all'}
361 70 244 if exists $range->{$delim}
370 0 84 unless my $data = $self->{'data'}
372 14 70 if $self->_is_full_range($range)
377 40 30 if (defined $range->{'count'})
381 12 28 if ($offset > 0) { }
8 20 elsif ($offset < 0) { }
386 8 12 if $count < 0
389 16 24 if $count < 0
390 24 16 if $count > 0
392 6 34 if $start < 0
393 0 40 if $start > $#$data
394 6 34 if $end > $#$data
395 0 40 if $end < 0
396 0 40 if $end < $start
403 4 26 if defined $range->{'to'} or defined $range->{'until'}
406 2 536 if defined $range->{'to'} and $v eq $range->{'to'}
407 2 536 if defined $range->{'since'} and $v eq $range->{'since'}
409 518 18 if $include
411 2 534 if defined $range->{'until'} and $v eq $range->{'until'}
412 4 532 if defined $range->{'from'} and $v eq $range->{'from'}
416 30 0 if scalar @result
430 0 234 unless my $data = $self->{'data'}
431 234 0 unless my $r = $self->{'range'}
435 0 0 if $self->_is_full_range($r)
436 0 0 if $offset < 0 or $count < 0
437 0 0 if (defined $r->{'count'})
438 0 0 if ($offset > 0)
442 0 0 if $count > 0
446 0 0 unless defined $r->{'since'} or defined $r->{'from'}
449 0 0 if defined $r->{'since'} and $v eq $r->{'since'}
450 0 0 if defined $r->{'from'} and $v eq $r->{'from'}
474 0 242 if defined $fh
475 242 0 if defined wantarray
478 4 8 if (defined $text)
479 0 4 if defined $fh
480 4 0 if defined wantarray
501 0 16 unless my(@data) = $self->get_range($range)
518 16 10 if (/^Urgency$/i) { }
10 0 elsif (/^Closes$/i) { }
531 10 228 $newurgn > $oldurgn ? :
537 168 248 if (/^Closes$/i) { }
10 238 elsif (not exists $f->{$_}) { }
545 10 6 if (scalar keys %closes)
556 0 22 unless my(@data) = $self->get_range($range)
573 350 484 unless exists $f->{$_}
652 16 22 if ($format eq 'dpkg') { }
22 0 elsif ($format eq 'rfc822') { }
660 2 36 if (wantarray) { }