MCPcopy
hub / github.com/srixivas/PcapXray / test_empty_pcap_name_is_safe

Function test_empty_pcap_name_is_safe

Test/test_sqlite_store.py:131–138  ·  view source on GitHub ↗
(store)

Source from the content-addressed store, hash-verified

129
130
131def test_empty_pcap_name_is_safe(store):
132 assert store.has_session("") is False
133 _seed_memory()
134 store.save_session("")
135 assert store.has_session("") is True
136 memory.packet_db = {}
137 store.load_session("")
138 assert "1.2.3.4/5.6.7.8/443" in memory.packet_db
139
140
141def test_load_corrupt_data_leaves_memory_untouched(store):

Callers

nothing calls this directly

Calls 4

_seed_memoryFunction · 0.85
has_sessionMethod · 0.80
save_sessionMethod · 0.80
load_sessionMethod · 0.80

Tested by

no test coverage detected