File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -5646,6 +5646,9 @@ sub _synthesize
5646
5646
if ($lcovutil::func_coverage ) {
5647
5647
while (my ($fnName , $funcEntry ) = each (%{$fileCovInfo -> functionMap()}))
5648
5648
{
5649
+ my $tla = $funcEntry -> hit()-> [1];
5650
+ # deleted function doesn't count
5651
+ next if grep (/ ^$tla $ / , (' DUB' , ' DCB' ));
5649
5652
my $line = $funcEntry -> line();
5650
5653
my $end = $funcEntry -> end_line();
5651
5654
$last_line = $line if $line > $last_line ;
Original file line number Diff line number Diff line change 16
16
#include <limits.h>
17
17
#include "iterate.h"
18
18
19
+ void test_data_logging (int , int );
19
20
20
21
int iterate_get_sum (int min , int max )
21
22
{
22
23
int i , total ;
23
24
25
+ test_data_logging (min , max );
26
+
24
27
total = 0 ;
25
28
26
29
/* This is where we loop over each number in the range, including
@@ -44,3 +47,11 @@ int iterate_get_sum (int min, int max)
44
47
45
48
return total ;
46
49
}
50
+
51
+ void
52
+ test_data_logging (int min , int max )
53
+ {
54
+ (void )min ; /* quiet compiler complaints */
55
+ (void )max ;
56
+ printf ("this is some debug data logging code that gets removed in the final product\n" );
57
+ }
You can’t perform that action at this time.
0 commit comments