OLD | NEW |
1 package fuzzcache | 1 package fuzzcache |
2 | 2 |
3 import ( | 3 import ( |
4 "os" | 4 "os" |
5 "reflect" | 5 "reflect" |
6 "testing" | 6 "testing" |
7 | 7 |
8 "go.skia.org/infra/fuzzer/go/common" | 8 "go.skia.org/infra/fuzzer/go/common" |
9 » "go.skia.org/infra/fuzzer/go/frontend/data" | 9 » "go.skia.org/infra/fuzzer/go/data" |
10 "go.skia.org/infra/go/testutils" | 10 "go.skia.org/infra/go/testutils" |
11 ) | 11 ) |
12 | 12 |
13 const TEST_DB_PATH = "/tmp/test-db" | 13 const TEST_DB_PATH = "/tmp/test-db" |
14 | 14 |
15 func TestBoltDBStoreAndRetrieve(t *testing.T) { | 15 func TestBoltDBStoreAndRetrieve(t *testing.T) { |
16 deleteBeforeTest(t) | 16 deleteBeforeTest(t) |
17 db, err := New(TEST_DB_PATH) | 17 db, err := New(TEST_DB_PATH) |
18 if err != nil { | 18 if err != nil { |
19 t.Fatalf("Could not open test db: %s", err) | 19 t.Fatalf("Could not open test db: %s", err) |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 data.FunctionFuzzReport{ | 124 data.FunctionFuzzReport{ |
125 FunctionName: "beta", Count: 2, LineNumbers: []d
ata.LineFuzzReport{ | 125 FunctionName: "beta", Count: 2, LineNumbers: []d
ata.LineFuzzReport{ |
126 data.LineFuzzReport{ | 126 data.LineFuzzReport{ |
127 LineNumber: 16, Count: 2, Detail
s: []data.FuzzReport{data.MockReport("api", "hhhh"), data.MockReport("api", "iii
i")}, | 127 LineNumber: 16, Count: 2, Detail
s: []data.FuzzReport{data.MockReport("api", "hhhh"), data.MockReport("api", "iii
i")}, |
128 }, | 128 }, |
129 }, | 129 }, |
130 }, | 130 }, |
131 }, | 131 }, |
132 }, | 132 }, |
133 } | 133 } |
OLD | NEW |