ooni-probe-cli/internal/netxlite/mocks
Simone Basso 3cd88debdc
netxlite: improve docs, tests, and code quality (#493)
* netxlite: improve docs, tests, and code quality

* better documentation

* more strict testing of dialer (especially make sure we
document the quirk in https://github.com/ooni/probe/issues/1779
and we have tests to guarantee we don't screw up here)

* introduce NewErrWrapper factory for creating errors so we
have confidence we are creating them correctly

Part of https://github.com/ooni/probe/issues/1591
2021-09-08 21:19:51 +02:00
..
dialer_test.go refactor(netxlite/mocks): group tests, fix naming inconsistencies (#485) 2021-09-07 23:12:23 +02:00
dialer.go refactor(netxlite/mocks): group tests, fix naming inconsistencies (#485) 2021-09-07 23:12:23 +02:00
doc.go refactor(netxlite): hide details without breaking the rest of the tree (#454) 2021-09-05 14:49:38 +02:00
http_test.go refactor(netxlite/mocks): group tests, fix naming inconsistencies (#485) 2021-09-07 23:12:23 +02:00
http.go refactor(netxlite): hide details without breaking the rest of the tree (#454) 2021-09-05 14:49:38 +02:00
http3_test.go refactor(netxlite): improve tests for http and http3 (#487) 2021-09-08 00:59:48 +02:00
http3.go refactor(netxlite): improve tests for http and http3 (#487) 2021-09-08 00:59:48 +02:00
legacy_test.go refactor(netxlite/mocks): group tests, fix naming inconsistencies (#485) 2021-09-07 23:12:23 +02:00
legacy.go feat(netxlite): add CloseIdleConnections to quic dialer (#469) 2021-09-06 20:56:14 +02:00
logger_test.go netxlite: improve docs, tests, and code quality (#493) 2021-09-08 21:19:51 +02:00
logger.go netxlite: improve docs, tests, and code quality (#493) 2021-09-08 21:19:51 +02:00
quic_test.go refactor(netxlite/mocks): group tests, fix naming inconsistencies (#485) 2021-09-07 23:12:23 +02:00
quic.go refactor(netxlite/mocks): group tests, fix naming inconsistencies (#485) 2021-09-07 23:12:23 +02:00
reader_test.go refactor(netxlite/mocks): group tests, fix naming inconsistencies (#485) 2021-09-07 23:12:23 +02:00
reader.go refactor(netxlite): hide details without breaking the rest of the tree (#454) 2021-09-05 14:49:38 +02:00
resolver_test.go refactor(netxlite/mocks): group tests, fix naming inconsistencies (#485) 2021-09-07 23:12:23 +02:00
resolver.go refactor(netxlite): add more functions to resolver (#455) 2021-09-05 18:03:50 +02:00
tls_test.go refactor(netxlite/mocks): group tests, fix naming inconsistencies (#485) 2021-09-07 23:12:23 +02:00
tls.go fix(netxlite): http factory that propagates close-idle-connections (#465) 2021-09-06 16:53:28 +02:00