ooni-probe-cli/internal/tracex
Simone Basso 6b85dfce88
refactor(netx): move construction logic outside package (#798)
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
2022-06-05 21:22:27 +02:00
..
archival_test.go refactor(tracex): internally store just the raw certificate (#787) 2022-06-02 11:07:02 +02:00
archival.go refactor(tracex): internally store just the raw certificate (#787) 2022-06-02 11:07:02 +02:00
dialer_test.go refactor(tracex): internally represent errors as strings (#786) 2022-06-02 10:37:07 +02:00
dialer.go refactor(tracex): internally represent errors as strings (#786) 2022-06-02 10:37:07 +02:00
doc.go refactor: move tracex outside of engine/netx (#782) 2022-06-02 00:50:55 +02:00
event_test.go chore: improve testing and increase coverage (#794) 2022-06-04 14:58:48 +02:00
event.go refactor(tracex): internally store just the raw certificate (#787) 2022-06-02 11:07:02 +02:00
http_test.go refactor(netx): move construction logic outside package (#798) 2022-06-05 21:22:27 +02:00
http.go refactor(netx): move construction logic outside package (#798) 2022-06-05 21:22:27 +02:00
quic_test.go chore: improve testing and increase coverage (#794) 2022-06-04 14:58:48 +02:00
quic.go refactor(tracex): internally store just the raw certificate (#787) 2022-06-02 11:07:02 +02:00
resolver_test.go chore: improve testing and increase coverage (#794) 2022-06-04 14:58:48 +02:00
resolver.go refactor(tracex): internally represent errors as strings (#786) 2022-06-02 10:37:07 +02:00
saver_test.go refactor: move tracex outside of engine/netx (#782) 2022-06-02 00:50:55 +02:00
saver.go refactor: move tracex outside of engine/netx (#782) 2022-06-02 00:50:55 +02:00
tls_test.go chore: improve testing and increase coverage (#794) 2022-06-04 14:58:48 +02:00
tls.go refactor(tracex): internally store just the raw certificate (#787) 2022-06-02 11:07:02 +02:00