ooni-probe-cli/internal/model/mocks
Simone Basso cc24f28b9d
feat(netxlite): support extracting the CNAME (#875)
* feat(netxlite): support extracting the CNAME

Closes https://github.com/ooni/probe/issues/2225

* fix(netxlite): attempt to increase coverage and improve tests

1. dnsovergetaddrinfo: specify the behavior of a DNSResponse returned
by this file to make it line with normal responses and write unit tests
to make sure we adhere to expectations;

2. dnsoverudp: make sure we wait to deferred responses also w/o a
custom context and post on a private channel and test that;

3. utls: recognize that we can actually write a test for NetConn and
what needs to change when we'll use go1.19 by default will just be
a cast that at that point can be removed.
2022-08-23 13:04:00 +02:00
..
addr_test.go feature: merge measurex and netx archival layer (1/N) (#663) 2022-01-14 12:13:10 +01:00
addr.go feature: merge measurex and netx archival layer (1/N) (#663) 2022-01-14 12:13:10 +01:00
dialer_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
dialer.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
dnsdecoder_test.go refactor: DNSTransport I/Os DNS messages (#760) 2022-05-25 17:03:58 +02:00
dnsdecoder.go refactor: DNSTransport I/Os DNS messages (#760) 2022-05-25 17:03:58 +02:00
dnsencoder_test.go refactor: DNSTransport I/Os DNS messages (#760) 2022-05-25 17:03:58 +02:00
dnsencoder.go refactor: DNSTransport I/Os DNS messages (#760) 2022-05-25 17:03:58 +02:00
dnsquery_test.go refactor: DNSTransport I/Os DNS messages (#760) 2022-05-25 17:03:58 +02:00
dnsquery.go refactor: DNSTransport I/Os DNS messages (#760) 2022-05-25 17:03:58 +02:00
dnsresponse_test.go feat(netxlite): support extracting the CNAME (#875) 2022-08-23 13:04:00 +02:00
dnsresponse.go feat(netxlite): support extracting the CNAME (#875) 2022-08-23 13:04:00 +02:00
dnstransport_test.go refactor: DNSTransport I/Os DNS messages (#760) 2022-05-25 17:03:58 +02:00
dnstransport.go refactor: DNSTransport I/Os DNS messages (#760) 2022-05-25 17:03:58 +02:00
doc.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
http_test.go refactor(oohelperd): improve tests implementation (#835) 2022-07-05 20:25:18 +02:00
http.go refactor(oohelperd): improve tests implementation (#835) 2022-07-05 20:25:18 +02:00
keyvaluestore_test.go feat(oonirun): add support for OONIRun v2 links (#844) 2022-07-08 16:53:59 +02:00
keyvaluestore.go feat(oonirun): add support for OONIRun v2 links (#844) 2022-07-08 16:53:59 +02:00
listener_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
listener.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
logger_test.go feat: re-implement the vanilla_tor experiment (#718) 2022-05-10 15:43:28 +02:00
logger.go feat: re-implement the vanilla_tor experiment (#718) 2022-05-10 15:43:28 +02:00
quic_test.go chore: upgrade deps and attempt to enable using go1.19 (#869) 2022-08-19 11:26:50 +02:00
quic.go chore: upgrade deps and attempt to enable using go1.19 (#869) 2022-08-19 11:26:50 +02:00
reader_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
reader.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
resolver_test.go feat(netxlite): implements NS queries (#734) 2022-05-16 10:46:53 +02:00
resolver.go feat(netxlite): implements NS queries (#734) 2022-05-16 10:46:53 +02:00
tls_test.go chore: upgrade deps and attempt to enable using go1.19 (#869) 2022-08-19 11:26:50 +02:00
tls.go chore: upgrade deps and attempt to enable using go1.19 (#869) 2022-08-19 11:26:50 +02:00
trace_test.go feat: context-based tracing to record delayed DNS responses (#870) 2022-08-22 14:21:32 +02:00
trace.go feat: context-based tracing to record delayed DNS responses (#870) 2022-08-22 14:21:32 +02:00