MCPcopy Index your code
hub / github.com/maruel/panicparse / BenchmarkScanSnapshot_Guess

Function BenchmarkScanSnapshot_Guess

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

Source from the content-addressed store, hash-verified

2183}
2184
2185func 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
2201func BenchmarkScanSnapshot_NoGuess(b *testing.B) {
2202 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…