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

Method test_dropall

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

Source from the content-addressed store, hash-verified

40 self.assertSamePackets(pkt_outs[0][0], pkt_in)
41
42 def test_dropall(self):
43 drop0 = RandomSplit(drop_rate=1, gates=[0])
44 pkt_in = get_udp_packet()
45 pkt_outs = self.run_module(drop0, 0, [pkt_in], [0])
46 self.assertEquals(len(pkt_outs[0]), 0)
47
48 def _drop_with_rate(self, rate):
49

Callers

nothing calls this directly

Calls 3

RandomSplitClass · 0.85
get_udp_packetFunction · 0.85
run_moduleMethod · 0.80

Tested by

no test coverage detected