ooni-probe-cli/internal/engine/httpx
Simone Basso ee0aa18616
refactor(httpx): use mocks to implement tests (#650)
* refactor(httpx): use mocks to implement tests

While there, make sure no test depends on external services by
replacing such tests with httptest.

See https://github.com/ooni/probe/issues/1951.

* fix(httpx): ensure we honour the context
2022-01-05 16:13:42 +01:00
..
httpx_test.go refactor(httpx): use mocks to implement tests (#650) 2022-01-05 16:13:42 +01:00
httpx.go refactor(httpx): use mocks to implement tests (#650) 2022-01-05 16:13:42 +01:00