Branch Coverage

blib/lib/C/Analyzer.pm
Criterion Covered Total %
branch 8 88 9.0


line true false branch
47 1 0 if (defined $params{'_inputPath'}) { }
55 1 0 if (defined $params{'_inputOption'}) { }
61 1 0 if (defined $params{'_cppPath'}) { }
68 0 1 if (defined $params{'_cppOptions'}) { }
74 0 1 if (defined $params{'_functionName'}) { }
80 0 1 if (defined $params{'_reportType'}) { }
86 0 1 if (defined $params{'_reportOptions'}) { }
92 0 1 if (defined $params{'_treeType'}) { }
131 0 0 if defined $folder
132 0 0 if defined $opt
133 0 0 if defined $cppPath
134 0 0 if defined $cppOpts
162 0 0 if (defined $functions) { }
197 0 0 if (defined $OS and $OS eq 'MSWin32' and $$opt eq 'dir_and_subdir')
203 0 0 if (defined $OS and $OS eq 'MSWin32' and $$opt eq 'dir')
207 0 0 if (defined $OS and $OS eq 'linux' and $$opt eq 'dir_and_subdir')
217 0 0 if (defined $OS and $OS eq 'linux' and $$opt eq 'dir')
245 0 0 if (exists $calls{$$function}) { }
252 0 0 if (defined $$function and defined $calls[0])
258 0 0 if ($calltablelen == 0)
286 0 0 if ($calls{$function})
294 0 0 if ($temp_call =~ /^\[/)
305 0 0 if ($element eq $temp_call)
312 0 0 if ($is_there eq 0) { }
322 0 0 if ($call =~ /^\(/) { }
336 0 0 if defined $temp_call and defined $str
340 0 0 if (defined $temp_call)
355 0 0 if ($call =~ /^\(/) { }
404 0 0 if ($cfile =~ /(.*)(\.c|\.C)$/)
478 0 0 unless open PPFILE, "<$$infile"
486 0 0 if ($ppfile =~ /^\#\s*([0-9]+)\s*\"(.*)\s*\"/)
495 0 0 if ($t_fun eq 'if' or $t_fun eq 'for' or $t_fun eq 'while' or $t_fun eq 'switch' or $t_fun eq 'case' or $t_fun eq 'int' or $t_fun eq 'char' or $t_fun eq 'flaot' or $t_fun eq 'double' or $t_fun eq 'long' or $t_fun eq 'short' or $t_fun eq 'bit' or $t_fun eq 'unsigned' or $t_fun eq 'return')
512 0 0 if ($opt_s) { }
516 0 0 if ($t_fun eq '') { }
524 0 0 if ($t_fun eq '') { }
581 0 0 if ($x eq '{')
584 0 0 if ($x eq '}')
587 0 0 unless (defined @$$fun_calls[$item] and defined @$$fun_calls[$item + 1])
593 0 0 if (@$$fun_calls[$item] =~ /(\w+.*)/ and @$$fun_calls[$item + 1] eq '{' and $OpenCount == $CloseCount)
606 0 0 if ($FUNCTIONFOUND == 1 and $OpenCount != $CloseCount)
607 0 0 if ($x eq '{' or $x eq '}' or $x eq ';') { }
614 0 0 if (defined $call)
642 0 0 if defined $string
643 0 0 if defined $string