MCPcopy Create free account
hub / github.com/FDio/vpp / test_random

Method test_random

test/test_reassembly.py:388–407  ·  view source on GitHub ↗

random order reassembly

(self)

Source from the content-addressed store, hash-verified

386 # "/err/ip4-full-reassembly-feature/reass_malformed_packet", 1)
387
388 def test_random(self):
389 """random order reassembly"""
390
391 fragments = list(self.fragments_200)
392 shuffle(fragments)
393
394 packets = self.send_and_expect_multi(
395 send=[Send(self.src_if, fragments)],
396 expect=[Expect(self.dst_if, len(self.packet_infos))],
397 )[0].packets
398
399 self.verify_capture(packets)
400
401 # run it all again to verify correctness
402 packets = self.send_and_expect_multi(
403 send=[Send(self.src_if, fragments)],
404 expect=[Expect(self.dst_if, len(self.packet_infos))],
405 )[0].packets
406
407 self.verify_capture(packets)
408
409 def test_duplicates(self):
410 """duplicate fragments"""

Callers

nothing calls this directly

Calls 4

verify_captureMethod · 0.95
SendClass · 0.90
ExpectClass · 0.90
send_and_expect_multiMethod · 0.80

Tested by

no test coverage detected