Index: fuzzer/go/data/report.go |
diff --git a/fuzzer/go/data/report.go b/fuzzer/go/data/report.go |
index 1d280cfaebe902545b1fee71a844f461513f6432..3ec0f97d759a7add96f5c401bab43db4192c5094 100644 |
--- a/fuzzer/go/data/report.go |
+++ b/fuzzer/go/data/report.go |
@@ -155,6 +155,7 @@ func (file *FileFuzzReport) filterByFuzzName(name string) bool { |
for _, function := range file.Functions { |
if function.filterByFuzzName(name) { |
file.Functions = []FunctionFuzzReport{function} |
+ file.Count = 1 |
return true |
} |
} |
@@ -167,6 +168,7 @@ func (function *FunctionFuzzReport) filterByFuzzName(name string) bool { |
for _, line := range function.LineNumbers { |
if line.filterByFuzzName(name) { |
function.LineNumbers = []LineFuzzReport{line} |
+ function.Count = 1 |
return true |
} |
} |
@@ -178,6 +180,7 @@ func (function *FunctionFuzzReport) filterByFuzzName(name string) bool { |
func (line *LineFuzzReport) filterByFuzzName(name string) bool { |
if b, hasIt := line.Details.containsName(name); hasIt { |
line.Details = SortedFuzzReports{b} |
+ line.Count = 1 |
return true |
} |
return false |