(b *testing.B)
| 140 | } |
| 141 | |
| 142 | func BenchmarkSerializeTcpComputeChecksums(b *testing.B) { |
| 143 | slayers := getSerializeLayers() |
| 144 | buf := gopacket.NewSerializeBuffer() |
| 145 | opts := gopacket.SerializeOptions{ComputeChecksums: true} |
| 146 | for i := 0; i < b.N; i++ { |
| 147 | gopacket.SerializeLayers(buf, opts, slayers...) |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | func BenchmarkSerializeTcpFixLengthsComputeChecksums(b *testing.B) { |
| 152 | slayers := getSerializeLayers() |
nothing calls this directly
no test coverage detected
searching dependent graphs…