(self)
| 33 | class 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]) |
nothing calls this directly
no test coverage detected