ooni-probe-cli/internal/tracex
Simone Basso 9354191b85
refactor(tracex): internally store just the raw certificate (#787)
By just storing the raw certificate we simplify the internal data
structure we use. In turn, this enables us to write better unit tests
using github.com/google/go-cmp where we can construct the expected
result and compare with that. (Yeah, in principle we could also
construct the full certificate but I'm not sure it's worth the effort
since we basically only care about the raw certificate.)

The general idea here is to make tracex more tested. Once it's more
tested, I will create separate structs for each event, which is
something that measurex also does. Once that is done, we can start
ensuring that the code in measurex and the code in tracex do the
same thing in terms of storing observations. When also this is done,
we can then rewrite measurex to use tracex directly.

The overall goal is https://github.com/ooni/probe/issues/2035.
2022-06-02 11:07:02 +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.go refactor(tracex): internally store just the raw certificate (#787) 2022-06-02 11:07:02 +02:00
http_test.go refactor(tracex): internally represent errors as strings (#786) 2022-06-02 10:37:07 +02:00
http.go refactor(tracex): internally represent errors as strings (#786) 2022-06-02 10:37:07 +02:00
quic_test.go refactor(tracex): internally store just the raw certificate (#787) 2022-06-02 11:07:02 +02:00
quic.go refactor(tracex): internally store just the raw certificate (#787) 2022-06-02 11:07:02 +02:00
resolver_test.go refactor(tracex): internally represent errors as strings (#786) 2022-06-02 10:37:07 +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 refactor(tracex): internally store just the raw certificate (#787) 2022-06-02 11:07:02 +02:00
tls.go refactor(tracex): internally store just the raw certificate (#787) 2022-06-02 11:07:02 +02:00