(b *testing.B)
| 275 | } |
| 276 | |
| 277 | func BenchmarkFlow(b *testing.B) { |
| 278 | p := gopacket.NewPacket(testSimpleTCPPacket, LinkTypeEthernet, gopacket.DecodeOptions{Lazy: true, NoCopy: true}) |
| 279 | net := p.NetworkLayer() |
| 280 | for i := 0; i < b.N; i++ { |
| 281 | net.NetworkFlow() |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | func BenchmarkEndpoints(b *testing.B) { |
| 286 | p := gopacket.NewPacket(testSimpleTCPPacket, LinkTypeEthernet, gopacket.DecodeOptions{Lazy: true, NoCopy: true}) |
nothing calls this directly
no test coverage detected
searching dependent graphs…