Branch Coverage

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


line true false branch
29 0 0 if (defined $_[0])
62 0 0 if (exists $$mapping{$macro}) { }
0 0 elsif (exists $$lcfgcfg{$macro}) { }
0 0 elsif (defined $extra and exists $$extra{$macro}) { }
66 0 0 if (not defined $output) { }
0 0 elsif (ref $output eq 'ARRAY') { }
95 0 0 if ($style eq 'cmake') { }
116 0 0 if (defined $value)
129 0 0 unless my $fh = 'IO::File'->new($in, 'r')
147 0 0 unless $tmp->close
149 0 0 unless rename $tmpname, $out
158 0 0 unless chmod $mode, $out
159 0 0 unless utime $atime, $mtime, $out
180 0 0 if (index($trans, '/') != -1)
188 0 0 if (index($match, '*') != -1) { }
195 0 0 if (-f $file) { }
207 0 0 if ($match =~ /(\.c?in)$/)
214 0 0 if (defined $suffix) { }
244 0 0 if ($remove_after and $in ne $out)
264 0 0 unless my $tt = 'Template'->new({'INCLUDE_PATH', $tmpldir, 'POST_CHOMP', 1, 'PRE_CHOMP', 1})
281 0 0 if ($force or not -e $cmake_file)
282 0 0 unless $tt->process('cmake.tt', $args, $cmake_file)
294 0 0 unless $tt->process('lcfg.cmake.tt', $args, $lcfg_cmake_file)
303 0 0 unless (defined $srcdir)
306 0 0 unless ('File::Spec'->file_name_is_absolute($srcdir))
310 0 0 unless (defined $resultsdir)
313 0 0 unless ('File::Spec'->file_name_is_absolute($resultsdir))
323 0 0 unless chdir $parent_dir