MCPcopy Create free account
hub / github.com/NetSys/bess / test_dropnone

Method test_dropnone

bessctl/module_tests/random_split.py:35–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33class BessRandomSplitTest(BessModuleTestCase):
34
35 def test_dropnone(self):
36 drop0 = RandomSplit(drop_rate=0, gates=[0])
37 pkt_in = get_udp_packet()
38 pkt_outs = self.run_module(drop0, 0, [pkt_in], [0])
39 self.assertEquals(len(pkt_outs[0]), 1)
40 self.assertSamePackets(pkt_outs[0][0], pkt_in)
41
42 def test_dropall(self):
43 drop0 = RandomSplit(drop_rate=1, gates=[0])

Callers

nothing calls this directly

Calls 4

RandomSplitClass · 0.85
get_udp_packetFunction · 0.85
run_moduleMethod · 0.80
assertSamePacketsMethod · 0.80

Tested by

no test coverage detected