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

Method test_random

test/test_reassembly.py:1501–1521  ·  view source on GitHub ↗

random order reassembly

(self)

Source from the content-addressed store, hash-verified

1499 self.verify_capture(packets)
1500
1501 def test_random(self):
1502 """random order reassembly"""
1503
1504 fragments = list(self.fragments_400)
1505 shuffle(fragments)
1506
1507 packets = self.send_and_expect_multi(
1508 send=[Send(self.src_if, fragments)],
1509 expect=[Expect(self.dst_if, len(self.pkt_infos))],
1510 )[0].packets
1511
1512 self.verify_capture(packets)
1513
1514 # run it all again to verify correctness
1515
1516 packets = self.send_and_expect_multi(
1517 send=[Send(self.src_if, fragments)],
1518 expect=[Expect(self.dst_if, len(self.pkt_infos))],
1519 )[0].packets
1520
1521 self.verify_capture(packets)
1522
1523 def test_duplicates(self):
1524 """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