[tor-bugs] #32300 [Circumvention/Snowflake]: Improve snowflake server test coverate
Tor Bug Tracker & Wiki
blackhole at torproject.org
Fri Oct 25 21:09:20 UTC 2019
#32300: Improve snowflake server test coverate
-------------------------------------+--------------------------
Reporter: cohosh | Owner: cohosh
Type: defect | Status: assigned
Priority: Medium | Milestone:
Component: Circumvention/Snowflake | Version:
Severity: Normal | Resolution:
Keywords: | Actual Points:
Parent ID: #29259 | Points:
Reviewer: | Sponsor:
-------------------------------------+--------------------------
Comment (by cohosh):
Here's a start on a branch with more server tests:
https://github.com/cohosh/snowflake/compare/server_tests
I did the following minor refactor in the server:
- allowed the passing in of a handler function in `initServer`
Test coverage is currently at 27.3% which is a big improvement. I don't
think we need close to 100% here, a lot of things are currently in the
main function and some code can't be tested with unit tests (calls to
goptlib functions). The server is pretty small and easy to maintain as it
is so I don't want to mess around with it too much.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/32300#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list