ooni-probe-cli/internal/engine
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
..
experiment refactor(httpx): hide the real APIClient (#648) 2022-01-05 14:15:42 +01:00
geolocate refactor(httpx): hide the real APIClient (#648) 2022-01-05 14:15:42 +01:00
httpheader [forwardport] release 3.11: update all the dependencies (#636) (#637) 2021-12-06 17:46:13 +01:00
httpx refactor(httpx): use mocks to implement tests (#650) 2022-01-05 16:13:42 +01:00
internal refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
legacy refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
mockable refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
netx refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
probeservices refactor(httpx): hide the real APIClient (#648) 2022-01-05 14:15:42 +01:00
testdata fix: add missing files causing tests to fail (#202) 2021-02-02 14:18:22 +01:00
.gitignore feat: support embedding encrypted psiphon config (#285) 2021-04-02 17:36:06 +02:00
allexperiments.go refactor: introduce and use InputOrStaticDefault (#632) 2021-12-03 15:30:56 +01:00
doc.go feat(engine): allow runner to return many measurements (#527) 2021-09-30 00:54:52 +02:00
experiment_integration_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
experiment_internal_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
experiment_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
experiment.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
experimentbuilder_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
experimentbuilder.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
inputloader_network_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
inputloader_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
inputloader.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
inputprocessor_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
inputprocessor.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
saver_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
saver.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
session_integration_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
session_internal_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
session_nopsiphon_test.go [forwardport] fix(mk): do nothing if we already have psiphon config (#605) (#606) 2021-11-19 12:40:10 +01:00
session_nopsiphon.go [forwardport] fix(mk): do nothing if we already have psiphon config (#605) (#606) 2021-11-19 12:40:10 +01:00
session_psiphon_test.go [forwardport] fix(mk): do nothing if we already have psiphon config (#605) (#606) 2021-11-19 12:40:10 +01:00
session_psiphon.go [forwardport] fix(mk): do nothing if we already have psiphon config (#605) (#606) 2021-11-19 12:40:10 +01:00
session.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
submitter_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
submitter.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00