(b *testing.B)
| 2199 | } |
| 2200 | |
| 2201 | func BenchmarkScanSnapshot_NoGuess(b *testing.B) { |
| 2202 | b.ReportAllocs() |
| 2203 | data := internaltest.StaticPanicwebOutput() |
| 2204 | opts := defaultOpts() |
| 2205 | b.ResetTimer() |
| 2206 | for i := 0; i < b.N; i++ { |
| 2207 | s, _, err := ScanSnapshot(bytes.NewReader(data), io.Discard, opts) |
| 2208 | if err != io.EOF { |
| 2209 | b.Fatal(err) |
| 2210 | } |
| 2211 | if s == nil { |
| 2212 | b.Fatal("missing context") |
| 2213 | } |
| 2214 | } |
| 2215 | } |
| 2216 | |
| 2217 | func BenchmarkScanSnapshot_Passthru(b *testing.B) { |
| 2218 | b.ReportAllocs() |
nothing calls this directly
no test coverage detected
searching dependent graphs…