MCPcopy
hub / github.com/grafana/tempo / assertPanic

Function assertPanic

pkg/parquetquery/iters_test.go:348–355  ·  view source on GitHub ↗
(t *testing.T, f func())

Source from the content-addressed store, hash-verified

346}
347
348func assertPanic(t *testing.T, f func()) {
349 defer func() {
350 if r := recover(); r == nil {
351 t.Errorf("no panic")
352 }
353 }()
354 f()
355}
356
357func BenchmarkIteratorResultAppend(b *testing.B) {
358 testCases := []struct {

Callers 1

Calls 1

fFunction · 0.85

Tested by

no test coverage detected