6b85dfce88
For testability, replace most if-based construction logic with calls to well-tested factories living in other packages. While there, acknowledge that a bunch of types could now be private and make them private, modifying the code to call the public factories allowing to construct said types instead. Part of https://github.com/ooni/probe/issues/2121 |
||
---|---|---|
.. | ||
testdata | ||
doc.go | ||
fake_test.go | ||
fake.go | ||
obfs4_test.go | ||
obfs4.go | ||
ptx_test.go | ||
ptx.go | ||
snowflake_test.go | ||
snowflake.go |