MCPcopy
hub / github.com/volatilityfoundation/volatility3 / test_mac_netstat

Function test_mac_netstat

test/test_volatility.py:330–337  ·  view source on GitHub ↗
(image, volatility, python)

Source from the content-addressed store, hash-verified

328
329
330def test_mac_netstat(image, volatility, python):
331 rc, out, _err = runvol_plugin("mac.netstat.Netstat", image, volatility, python)
332
333 assert out.find(b"TCP") != -1
334 assert out.find(b"UDP") != -1
335 assert out.find(b"UNIX") != -1
336 assert out.count(b"\n") > 10
337 assert rc == 0
338
339
340def test_mac_proc_maps(image, volatility, python):

Callers

nothing calls this directly

Calls 3

runvol_pluginFunction · 0.85
countMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected