NullHypothesis / exitmap

A fast and modular scanner for Tor exit relays. The canonical repository (including issue tracker) is at https://gitlab.torproject.org/tpo/network-health/exitmap
https://www.cs.kau.se/philwint/spoiled_onions/
GNU General Public License v3.0
454 stars 107 forks source link

Increase test coverage #22

Closed NullHypothesis closed 11 months ago

NullHypothesis commented 9 years ago

Test coverage is almost zero at this point, which means that there's quite a bit of code that has never been executed.

frankcash commented 9 years ago

I would be interested in helping with this, do you have a preferred starting point?

NullHypothesis commented 9 years ago

Great, thanks for your interest, Frank! There's some rudimentary code in unittests.py which would be a good starting point. There are several functions in the code (e.g., in util.py) that are easy to test in isolation. For others, it might be more difficult.

frankcash commented 9 years ago

okay, awesome. I'll start by adding tests to unittests.py