Branch Coverage

blib/lib/Parse/CPAN/Packages.pm
Criterion Covered Total %
branch 26 34 76.4


line true false branch
23 1 5 if @args > 1
32 6 0 if $filename
39 2 3 if $self->filename =~ /\n/
40 0 3 unless -f $self->filename
50 1 5 if $filename =~ /Description:/
51 1 4 if $filename =~ /^\037\213/
54 2 2 if $filename =~ /\.gz/
58 2 2 if $filename =~ /\.gz/
74 6 48 if /^\s*$/
75 0 48 unless /^([^:]+):\s*(.*)/
119 12 42 if $d
174 36 18 unless ($latest)
188 0 18 if $self->_dist_is_latest($newv, $latestv, $new_version, $latest_version)
195 0 18 if $newv and $latestv and $newv > $latestv
197 0 18 if $new_version > $latest_version
213 0 36 unless $dist->dist
219 0 55 unless $dist