MCPcopy Create free account
hub / github.com/maruel/panicparse / BenchmarkScanSnapshot_NoGuess

Function BenchmarkScanSnapshot_NoGuess

stack/context_test.go:2201–2215  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

2199}
2200
2201func 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
2217func BenchmarkScanSnapshot_Passthru(b *testing.B) {
2218 b.ReportAllocs()

Callers

nothing calls this directly

Calls 3

StaticPanicwebOutputFunction · 0.92
defaultOptsFunction · 0.85
ScanSnapshotFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…