(b *testing.B)
| 263 | } |
| 264 | |
| 265 | func BenchmarkAggregated_ToHTML(b *testing.B) { |
| 266 | b.ReportAllocs() |
| 267 | s, _, err := ScanSnapshot(bytes.NewReader(internaltest.StaticPanicwebOutput()), io.Discard, DefaultOpts()) |
| 268 | if err != io.EOF { |
| 269 | b.Fatal(err) |
| 270 | } |
| 271 | if s == nil { |
| 272 | b.Fatal("missing context") |
| 273 | } |
| 274 | a := s.Aggregate(AnyPointer) |
| 275 | b.ResetTimer() |
| 276 | for i := 0; i < b.N; i++ { |
| 277 | if err := a.ToHTML(io.Discard, ""); err != nil { |
| 278 | b.Fatal(err) |
| 279 | } |
| 280 | } |
| 281 | } |
| 282 | |
| 283 | // |
| 284 |
nothing calls this directly
no test coverage detected
searching dependent graphs…