Branch Coverage

blib/lib/LCFG/Build/Utils/RPM.pm
Criterion Covered Total %
branch 0 60 0.0


line true false branch
33 0 0 unless (-f $specfile)
35 0 0 unless (-f $specfile)
43 0 0 unless (defined $logfile)
46 0 0 if (-f $path)
54 0 0 if (defined $logfile)
56 0 0 if (-f $logfile)
83 0 0 if (scalar @entries == 0)
108 0 0 if ($LCFG::Build::Utils::RPM::EVAL_ERROR or not defined $dt)
115 0 0 unless (defined $title)
119 0 0 if ($title =~ /\s*cvs:\s*new release/i and defined $$entry{'release'})
126 0 0 if (defined $$entry{'body'})
130 0 0 if (scalar @body == 0)
147 0 0 if (not -f $file or -z $file)
151 0 0 unless my $fh = 'IO::File'->new($file, 'r')
158 0 0 if ($line =~ /^\s*$/) { }
0 0 elsif ($line =~ /^(\d+)-(\d+)-(\d+)\s*(.*)$/) { }
171 0 0 if ($line =~ /^\*\s*(.+)/) { }
0 0 elsif (scalar @{$body;} == 0) { }
173 0 0 if ($entry =~ /^release:\s*(.+)$/i)
193 0 0 unless (defined $options)
198 0 0 if ($$options{'sourceonly'}) { }
202 0 0 if ($$options{'nodeps'})
206 0 0 if ($$options{'sign'})
215 0 0 if ($$options{'builddir'}) { }
221 0 0 unless (-d $builddir)
222 0 0 unless mkdir $builddir
226 0 0 unless mkdir $rpmdir
242 0 0 if ($ok != 0)
250 0 0 unless ($$options{'sourceonly'})
256 0 0 unless File::Copy::move($rpm, $target)