(t *testing.T, p gopacket.Packet, data []byte)
| 496 | } |
| 497 | |
| 498 | func testSerialization(t *testing.T, p gopacket.Packet, data []byte) { |
| 499 | for _, opts := range []gopacket.SerializeOptions{ |
| 500 | gopacket.SerializeOptions{}, |
| 501 | gopacket.SerializeOptions{FixLengths: true}, |
| 502 | gopacket.SerializeOptions{ComputeChecksums: true}, |
| 503 | gopacket.SerializeOptions{FixLengths: true, ComputeChecksums: true}, |
| 504 | } { |
| 505 | testSerializationWithOpts(t, p, data, opts) |
| 506 | } |
| 507 | } |
| 508 | |
| 509 | func testSerializationWithOpts(t *testing.T, p gopacket.Packet, data []byte, opts gopacket.SerializeOptions) { |
| 510 | // Test re-serialization. |
no test coverage detected
searching dependent graphs…