Opened 3 weeks ago

Last modified 3 weeks ago

#32300 assigned defect

Improve snowflake server test coverage

Reported by: cohosh Owned by: cohosh
Priority: Medium Milestone:
Component: Circumvention/Snowflake Version:
Severity: Normal Keywords:
Cc: arlolra, cohosh, phw, dcf Actual Points:
Parent ID: #29259 Points:
Reviewer: Sponsor:

Description

Splitting #29259 into smaller tickets.

As of writing this, the snowflake server unit test coverage is 3%.

Child Tickets

Change History (2)

comment:1 Changed 3 weeks ago 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.

comment:2 Changed 3 weeks ago by arma

Summary: Improve snowflake server test coverateImprove snowflake server test coverage
Note: See TracTickets for help on using tickets.