scVENUS / PeekabooAV

Peekaboo Extended Email Attachment Behavior Observation Owl
https://peekabooav.de
GNU General Public License v3.0
66 stars 20 forks source link

Asyncio 3.6 #220

Closed michaelweiser closed 2 years ago

michaelweiser commented 2 years ago

This is the first round of fixups for fallout caused by our whole-sale switch to asyncio. So far it's mostly functions unavailable in pyhton 3.6 or 3.7 which our testsuite didn't catch due to missing coverage.

michaelweiser commented 2 years ago

It appears, we're not as bad as thought in test coverage (measured using `coverage.py):

$ coverage run tests/test.py
[...]
Ran 73 tests in 4.957s

OK
$ coverage report
Name                              Stmts   Miss  Cover
-----------------------------------------------------
peekaboo/__init__.py                  8      0   100%
peekaboo/config.py                  231     20    91%
peekaboo/db.py                      300     98    67%
peekaboo/exceptions.py               12      0   100%
peekaboo/ruleset/__init__.py         41     10    76%
peekaboo/ruleset/engine.py           97     49    49%
peekaboo/ruleset/expressions.py     314     51    84%
peekaboo/ruleset/rules.py           318     89    72%
peekaboo/sample.py                  220     48    78%
peekaboo/toolbox/__init__.py          0      0   100%
peekaboo/toolbox/cortex.py          325    163    50%
peekaboo/toolbox/cuckoo.py          204    132    35%
peekaboo/toolbox/file.py             55      5    91%
peekaboo/toolbox/known.py            59     13    78%
peekaboo/toolbox/ole.py              81      4    95%
peekaboo/toolbox/peekabooyar.py      12      6    50%
tests/test.py                      1080     21    98%
-----------------------------------------------------
TOTAL                              3357    709    79%

But: As suspected, daemon.py and server.py are notably absent.