(b *testing.B)
| 368 | } |
| 369 | |
| 370 | func BenchmarkPacketDumpString(b *testing.B) { |
| 371 | b.StopTimer() |
| 372 | p := gopacket.NewPacket(testSimpleTCPPacket, LinkTypeEthernet, testDecodeOptions) |
| 373 | b.StartTimer() |
| 374 | for i := 0; i < b.N; i++ { |
| 375 | _ = p.String() |
| 376 | } |
| 377 | } |
| 378 | |
| 379 | // TestFlowMapKey makes sure a flow and an endpoint can be used as map keys. |
| 380 | func TestFlowMapKey(t *testing.T) { |