From: Peter O. <obe...@us...> - 2010-07-28 14:48:34
|
Update of /cvsroot/ltp/utils/analysis/lcov/bin In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv15926 Modified Files: geninfo Log Message: geninfo: remove unneeded functions Index: geninfo =================================================================== RCS file: /cvsroot/ltp/utils/analysis/lcov/bin/geninfo,v retrieving revision 1.79 retrieving revision 1.80 diff -C2 -d -r1.79 -r1.80 *** geninfo 28 Jul 2010 14:19:09 -0000 1.79 --- geninfo 28 Jul 2010 14:48:25 -0000 1.80 *************** *** 3067,3112 **** return \%capabilities; } - - - # - # get_overall_line(found, hit, name_singular, name_plural) - # - # Return a string containing overall information for the specified - # found/hit data. - # - - sub get_overall_line($$$$) - { - my ($found, $hit, $name_sn, $name_pl) = @_; - my $name; - - return "no data found" if (!defined($found) || $found == 0); - $name = ($found == 1) ? $name_sn : $name_pl; - return sprintf("%.1f%% (%d of %d %s)", $hit * 100 / $found, $hit, - $found, $name); - } - - - # - # print_overall_rate(ln_do, ln_found, ln_hit, fn_do, fn_found, fn_hit, br_do - # br_found, br_hit) - # - # Print overall coverage rates for the specified coverage types. - # - - sub print_overall_rate($$$$$$$$$) - { - my ($ln_do, $ln_found, $ln_hit, $fn_do, $fn_found, $fn_hit, - $br_do, $br_found, $br_hit) = @_; - - info("Overall coverage rate:\n"); - info(" lines......: %s\n", - get_overall_line($ln_found, $ln_hit, "line", "lines")) - if ($ln_do); - info(" functions..: %s\n", - get_overall_line($fn_found, $fn_hit, "function", "functions")) - if ($fn_do); - info(" branches...: %s\n", - get_overall_line($br_found, $br_hit, "branch", "branches")) - if ($br_do); - } --- 3067,3068 ---- |