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

Unified Diff: fuzzer/go/frontend/data/report_mock.go

Issue 1691893002: Fuzzer now deduplicates on the analysis side instead of the download side (Closed) Base URL: https://skia.googlesource.com/buildbot@metrics
Patch Set: 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 | « fuzzer/go/frontend/data/report.go ('k') | fuzzer/go/frontend/data/report_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fuzzer/go/frontend/data/report_mock.go
diff --git a/fuzzer/go/frontend/data/report_mock.go b/fuzzer/go/frontend/data/report_mock.go
deleted file mode 100644
index de98b4062a48f96660ef287d8221e344e4dc3ac8..0000000000000000000000000000000000000000
--- a/fuzzer/go/frontend/data/report_mock.go
+++ /dev/null
@@ -1,97 +0,0 @@
-package data
-
-import "fmt"
-
-func MockReport(category, id string) FuzzReport {
- if category == "skpicture" {
- return mockPictureDetails[id]
- }
- if category == "api" {
- return mockAPIDetails[id]
- }
- panic(fmt.Sprintf("No mock reports for category %s", category))
-}
-
-var mockFlags = []string{"foo", "bar"}
-
-var mockPictureDetails = map[string]FuzzReport{
- "aaaa": FuzzReport{
- DebugStackTrace: makeStacktrace("alpha", "beta", 16),
- ReleaseStackTrace: makeStacktrace("alpha", "beta", 16),
- DebugFlags: mockFlags,
- FuzzName: "aaaa",
- FuzzCategory: "skpicture",
- },
- "bbbb": FuzzReport{
- DebugStackTrace: makeStacktrace("alpha", "beta", 16),
- ReleaseStackTrace: StackTrace{},
- DebugFlags: mockFlags,
- FuzzName: "bbbb",
- FuzzCategory: "skpicture",
- },
- "cccc": FuzzReport{
- DebugStackTrace: makeStacktrace("alpha", "beta", 16),
- ReleaseStackTrace: makeStacktrace("alpha", "gamma", 26),
- DebugFlags: mockFlags,
- FuzzName: "cccc",
- FuzzCategory: "skpicture",
- },
- "dddd": FuzzReport{
- DebugStackTrace: makeStacktrace("alpha", "gamma", 43),
- ReleaseStackTrace: makeStacktrace("delta", "epsilon", 125),
- DebugFlags: mockFlags,
- FuzzName: "dddd",
- FuzzCategory: "skpicture",
- },
- "eeee": FuzzReport{
- DebugStackTrace: StackTrace{},
- ReleaseStackTrace: StackTrace{},
- DebugFlags: mockFlags,
- FuzzName: "eeee",
- FuzzCategory: "skpicture",
- },
- "ffff": FuzzReport{
- DebugStackTrace: makeStacktrace("alpha", "beta", 16),
- ReleaseStackTrace: makeStacktrace("alpha", "beta", 16),
- DebugFlags: mockFlags,
- FuzzName: "ffff",
- FuzzCategory: "skpicture",
- },
- "gggg": FuzzReport{
- DebugStackTrace: makeStacktrace("delta", "epsilon", 122),
- ReleaseStackTrace: StackTrace{},
- DebugFlags: mockFlags,
- FuzzName: "gggg",
- FuzzCategory: "skpicture",
- },
-}
-
-var mockAPIDetails = map[string]FuzzReport{
- "hhhh": FuzzReport{
- DebugStackTrace: makeStacktrace("alpha", "beta", 16),
- ReleaseStackTrace: makeStacktrace("alpha", "beta", 16),
- DebugFlags: mockFlags,
- FuzzName: "hhhh",
- FuzzCategory: "api",
- },
- "iiii": FuzzReport{
- DebugStackTrace: makeStacktrace("alpha", "beta", 16),
- ReleaseStackTrace: StackTrace{},
- DebugFlags: mockFlags,
- FuzzName: "iiii",
- FuzzCategory: "api",
- },
-}
-
-func makeStacktrace(file, function string, line int) StackTrace {
- return StackTrace{
- Frames: []StackTraceFrame{
- {
- PackageName: "mock/package/",
- FileName: file,
- LineNumber: line,
- FunctionName: function,
- },
- },
- }
-}
« no previous file with comments | « fuzzer/go/frontend/data/report.go ('k') | fuzzer/go/frontend/data/report_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698