(b *testing.B)
| 2183 | } |
| 2184 | |
| 2185 | func BenchmarkScanSnapshot_Guess(b *testing.B) { |
| 2186 | b.ReportAllocs() |
| 2187 | data := internaltest.StaticPanicwebOutput() |
| 2188 | opts := defaultOpts() |
| 2189 | b.ResetTimer() |
| 2190 | for i := 0; i < b.N; i++ { |
| 2191 | s, _, err := ScanSnapshot(bytes.NewReader(data), io.Discard, opts) |
| 2192 | if err != io.EOF { |
| 2193 | b.Fatal(err) |
| 2194 | } |
| 2195 | if s == nil { |
| 2196 | b.Fatal("missing context") |
| 2197 | } |
| 2198 | } |
| 2199 | } |
| 2200 | |
| 2201 | func BenchmarkScanSnapshot_NoGuess(b *testing.B) { |
| 2202 | b.ReportAllocs() |
nothing calls this directly
no test coverage detected
searching dependent graphs…