Branch Coverage

blib/lib/CPAN/Testers/Data/Release.pm
Criterion Covered Total %
branch 51 62 82.2


line true false branch
68 1 3 if ($$self{'clean'}) { }
2 1 elsif ($$self{'RELEASE'}{'exists'}) { }
80 1 2 if ($idfile and -f $idfile)
81 1 0 if (my $fh = 'IO::File'->new($idfile, 'r'))
102 37 60 if $lastid < $$rs{'id'}
111 2 1 if ($idfile)
112 2 0 if (my $fh = 'IO::File'->new($idfile, 'w+'))
140 4 35 if ($dist and $dist ne $$row{'dist'})
151 21 18 if ($data{$$row{'version'}}) { }
160 11 28 if $lastid < $$row{'id'}
163 2 0 if ($dist)
173 1 1 if ($idfile)
174 1 0 if (my $fh = 'IO::File'->new($idfile, 'w+'))
193 2 9 if ($dist and $dist ne $$row{'dist'})
219 1 0 if ($dist)
244 2 2 if $mess
246 3 1 if ($full)
273 0 7 unless GetOptions \%options, 'clean', 'config=s', 'help|h', 'version|v'
282 8 13 if defined $hash{$_}
285 1 6 if $options{'help'}
286 1 5 if $options{'version'}
288 1 4 unless $options{'config'}
289 1 3 unless -f $options{'config'}
300 0 6 unless $cfg->SectionExists($dbname)
302 6 0 $opts{'driver'} =~ /SQLite/i ? :
304 0 6 unless $$self{$dbname}{'dbh'}
307 0 3 if $options{'clean'}
312 50 32 unless my $log = $self->logfile
313 1 31 unless -f $log
315 1 31 $self->logclean ? :
321 0 32 unless my $fh = 'IO::File'->new($log, $mode)