Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Unified Diff: fuzzer/go/data/report.go

Issue 1695803002: Improve fuzz counts (Closed) Base URL: https://skia.googlesource.com/buildbot@dedup-first
Patch Set: Add docs Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | fuzzer/go/frontend/syncer/fuzz_syncer.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | fuzzer/go/frontend/syncer/fuzz_syncer.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698