[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #32300 [Circumvention/Snowflake]: Improve snowflake server test coverate
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs