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

Side by Side Diff: fuzzer/go/frontend/data/report_test.go

Issue 1668543004: Add AddressSanitizer to fuzzer analysis (Closed) Base URL: https://skia.googlesource.com/buildbot@remove-old-tests
Patch Set: add multi threaded delete 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 unified diff | Download patch
OLDNEW
1 package data 1 package data
2 2
3 import ( 3 import (
4 "reflect" 4 "reflect"
5 "testing" 5 "testing"
6 6
7 "go.skia.org/infra/fuzzer/go/common" 7 "go.skia.org/infra/fuzzer/go/common"
8 ) 8 )
9 9
10 func TestSortedFuzzReports(t *testing.T) { 10 func TestSortedFuzzReports(t *testing.T) {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 FunctionName: function, 82 FunctionName: function,
83 }, 83 },
84 }, 84 },
85 } 85 }
86 } 86 }
87 87
88 var mockFlags = []string{"foo", "bar"} 88 var mockFlags = []string{"foo", "bar"}
89 89
90 var mockPictureDetails = map[string]FuzzReport{ 90 var mockPictureDetails = map[string]FuzzReport{
91 "aaaa": FuzzReport{ 91 "aaaa": FuzzReport{
92 » » DebugStackTrace: makeStacktrace("alpha", "beta", 16), 92 » » DebugStackTrace: makeStacktrace("alpha", "beta", 16),
93 » » ReleaseStackTrace: makeStacktrace("alpha", "beta", 16), 93 » » ReleaseStackTrace: makeStacktrace("alpha", "beta", 16),
94 » » HumanReadableFlags: mockFlags, 94 » » DebugFlags: mockFlags,
95 » » FuzzName: "aaaa", 95 » » FuzzName: "aaaa",
96 » » FuzzCategory: "skpicture", 96 » » FuzzCategory: "skpicture",
97 }, 97 },
98 "bbbb": FuzzReport{ 98 "bbbb": FuzzReport{
99 » » DebugStackTrace: makeStacktrace("alpha", "beta", 16), 99 » » DebugStackTrace: makeStacktrace("alpha", "beta", 16),
100 » » ReleaseStackTrace: StackTrace{}, 100 » » ReleaseStackTrace: StackTrace{},
101 » » HumanReadableFlags: mockFlags, 101 » » DebugFlags: mockFlags,
102 » » FuzzName: "bbbb", 102 » » FuzzName: "bbbb",
103 » » FuzzCategory: "skpicture", 103 » » FuzzCategory: "skpicture",
104 }, 104 },
105 "cccc": FuzzReport{ 105 "cccc": FuzzReport{
106 » » DebugStackTrace: makeStacktrace("alpha", "beta", 16), 106 » » DebugStackTrace: makeStacktrace("alpha", "beta", 16),
107 » » ReleaseStackTrace: makeStacktrace("alpha", "gamma", 26), 107 » » ReleaseStackTrace: makeStacktrace("alpha", "gamma", 26),
108 » » HumanReadableFlags: mockFlags, 108 » » DebugFlags: mockFlags,
109 » » FuzzName: "cccc", 109 » » FuzzName: "cccc",
110 » » FuzzCategory: "skpicture", 110 » » FuzzCategory: "skpicture",
111 }, 111 },
112 "dddd": FuzzReport{ 112 "dddd": FuzzReport{
113 » » DebugStackTrace: makeStacktrace("alpha", "gamma", 43), 113 » » DebugStackTrace: makeStacktrace("alpha", "gamma", 43),
114 » » ReleaseStackTrace: makeStacktrace("delta", "epsilon", 125), 114 » » ReleaseStackTrace: makeStacktrace("delta", "epsilon", 125),
115 » » HumanReadableFlags: mockFlags, 115 » » DebugFlags: mockFlags,
116 » » FuzzName: "dddd", 116 » » FuzzName: "dddd",
117 » » FuzzCategory: "skpicture", 117 » » FuzzCategory: "skpicture",
118 }, 118 },
119 "eeee": FuzzReport{ 119 "eeee": FuzzReport{
120 » » DebugStackTrace: StackTrace{}, 120 » » DebugStackTrace: StackTrace{},
121 » » ReleaseStackTrace: StackTrace{}, 121 » » ReleaseStackTrace: StackTrace{},
122 » » HumanReadableFlags: mockFlags, 122 » » DebugFlags: mockFlags,
123 » » FuzzName: "eeee", 123 » » FuzzName: "eeee",
124 » » FuzzCategory: "skpicture", 124 » » FuzzCategory: "skpicture",
125 }, 125 },
126 "ffff": FuzzReport{ 126 "ffff": FuzzReport{
127 » » DebugStackTrace: makeStacktrace("alpha", "beta", 16), 127 » » DebugStackTrace: makeStacktrace("alpha", "beta", 16),
128 » » ReleaseStackTrace: makeStacktrace("alpha", "beta", 16), 128 » » ReleaseStackTrace: makeStacktrace("alpha", "beta", 16),
129 » » HumanReadableFlags: mockFlags, 129 » » DebugFlags: mockFlags,
130 » » FuzzName: "ffff", 130 » » FuzzName: "ffff",
131 » » FuzzCategory: "skpicture", 131 » » FuzzCategory: "skpicture",
132 }, 132 },
133 "gggg": FuzzReport{ 133 "gggg": FuzzReport{
134 » » DebugStackTrace: makeStacktrace("delta", "epsilon", 122), 134 » » DebugStackTrace: makeStacktrace("delta", "epsilon", 122),
135 » » ReleaseStackTrace: StackTrace{}, 135 » » ReleaseStackTrace: StackTrace{},
136 » » HumanReadableFlags: mockFlags, 136 » » DebugFlags: mockFlags,
137 » » FuzzName: "gggg", 137 » » FuzzName: "gggg",
138 » » FuzzCategory: "skpicture", 138 » » FuzzCategory: "skpicture",
139 }, 139 },
140 } 140 }
141 141
142 var mockAPIDetails = map[string]FuzzReport{ 142 var mockAPIDetails = map[string]FuzzReport{
143 "hhhh": FuzzReport{ 143 "hhhh": FuzzReport{
144 » » DebugStackTrace: makeStacktrace("alpha", "beta", 16), 144 » » DebugStackTrace: makeStacktrace("alpha", "beta", 16),
145 » » ReleaseStackTrace: makeStacktrace("alpha", "beta", 16), 145 » » ReleaseStackTrace: makeStacktrace("alpha", "beta", 16),
146 » » HumanReadableFlags: mockFlags, 146 » » DebugFlags: mockFlags,
147 » » FuzzName: "hhhh", 147 » » FuzzName: "hhhh",
148 » » FuzzCategory: "api", 148 » » FuzzCategory: "api",
149 }, 149 },
150 "iiii": FuzzReport{ 150 "iiii": FuzzReport{
151 » » DebugStackTrace: makeStacktrace("alpha", "beta", 16), 151 » » DebugStackTrace: makeStacktrace("alpha", "beta", 16),
152 » » ReleaseStackTrace: StackTrace{}, 152 » » ReleaseStackTrace: StackTrace{},
153 » » HumanReadableFlags: mockFlags, 153 » » DebugFlags: mockFlags,
154 » » FuzzName: "iiii", 154 » » FuzzName: "iiii",
155 » » FuzzCategory: "api", 155 » » FuzzCategory: "api",
156 }, 156 },
157 } 157 }
158 158
159 var expectedPictureTree = FuzzReportTree{ 159 var expectedPictureTree = FuzzReportTree{
160 FileFuzzReport{ 160 FileFuzzReport{
161 FileName: "mock/package/alpha", Count: 4, Functions: []FunctionF uzzReport{ 161 FileName: "mock/package/alpha", Count: 4, Functions: []FunctionF uzzReport{
162 FunctionFuzzReport{ 162 FunctionFuzzReport{
163 FunctionName: "beta", Count: 3, LineNumbers: []L ineFuzzReport{ 163 FunctionName: "beta", Count: 3, LineNumbers: []L ineFuzzReport{
164 LineFuzzReport{ 164 LineFuzzReport{
165 LineNumber: 16, Count: 3, Detail s: []FuzzReport{mockPictureDetails["aaaa"], mockPictureDetails["bbbb"], mockPict ureDetails["ffff"]}, 165 LineNumber: 16, Count: 3, Detail s: []FuzzReport{mockPictureDetails["aaaa"], mockPictureDetails["bbbb"], mockPict ureDetails["ffff"]},
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 FunctionFuzzReport{ 266 FunctionFuzzReport{
267 FunctionName: "beta", Count: 2, LineNumbers: []L ineFuzzReport{ 267 FunctionName: "beta", Count: 2, LineNumbers: []L ineFuzzReport{
268 LineFuzzReport{ 268 LineFuzzReport{
269 LineNumber: 16, Count: 2, Detail s: nil, 269 LineNumber: 16, Count: 2, Detail s: nil,
270 }, 270 },
271 }, 271 },
272 }, 272 },
273 }, 273 },
274 }, 274 },
275 } 275 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698