MCPcopy Create free account
hub / github.com/SecurityInnovation/PGPy / fuzz_pkt

Method fuzz_pkt

tests/test_10_exceptions.py:123–132  ·  view source on GitHub ↗
(slice, val, exc_type)

Source from the content-addressed store, hash-verified

121 b'\x81iu\n\xe3W\xe2\x03\xb1\xc3\xd8p\x89W')
122
123 def fuzz_pkt(slice, val, exc_type):
124 d = data[:]
125 d[slice] = val
126
127 if exc_type is not None:
128 with pytest.raises(exc_type):
129 Packet(d)
130
131 else:
132 Packet(d)
133
134 # ensure the base packet works, first
135 Packet(data[:])

Callers

nothing calls this directly

Calls 1

PacketClass · 0.90

Tested by

no test coverage detected