summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* dirmgr: a couple of tiny testsNick Mathewson2021-05-032-6/+31
|
* Add trait_duplication_in_bounds warning.Nick Mathewson2021-05-0322-0/+22
|
* Add unseparated_literal_suffix lint, and fix it.Nick Mathewson2021-05-0342-34/+56
|
* Add a few more clippy warningsNick Mathewson2021-05-0322-0/+110
|
* tweak semantics of routerdesc docidNick Mathewson2021-05-031-1/+2
|
* Add missing documention in tor-rtmockNick Mathewson2021-05-031-0/+1
|
* Merge remote-tracking branch 'origin/mr/31'Nick Mathewson2021-05-032-5/+7
|\
| * Fix experimental-api feature after refactoringDavid Goulet2021-05-032-5/+7
|/ | | | | | | | | Important refactoring happened recently which broke the "experimental-api" feature. Fixes are quite simple. Signed-off-by: David Goulet <[email protected]>
* whoops; forgot a git-addNick Mathewson2021-05-031-0/+22
|
* Make the MockNetProvider builder non-consuming.Nick Mathewson2021-05-032-48/+43
|
* Add warnings to tor-rtmockNick Mathewson2021-05-031-0/+11
|
* Bump regex and memchr versionsNick Mathewson2021-05-032-2/+2
|
* Split mocking parts of rtcompat into new rtmock crate.Nick Mathewson2021-05-0315-193/+194
| | | | | Since these parts are testing-only, let's take steps to make sure we don't ship them in production by accident.
* bump to latest async_ioNick Mathewson2021-05-031-1/+1
|
* Much-improved tests for tor_chanmgr::builderNick Mathewson2021-04-304-1/+147
| | | | | | Now that we have MockNetRuntime and MockSleepRuntime, we can use them to test a channel-builder by replaying the contents of a TLS stream that it will accept.
* Make `now` an argument when verifying a channel.Nick Mathewson2021-04-301-4/+7
| | | | | It turns out that we want to take `now` from the Runtime, to make higher level code testable.
* note a small divergence in circuit id probing behavior.Nick Mathewson2021-04-291-0/+2
|
* Note a limitation in MockSleepProvider::advanceNick Mathewson2021-04-282-5/+7
|
* Remove most pin_project usage in tor_rtcompat.Nick Mathewson2021-04-284-65/+40
|
* Remove pin_project usage in tor-proto.Nick Mathewson2021-04-283-54/+45
| | | | Turns out we didn't need it.
* Define a runtime wrapper to override the network.Nick Mathewson2021-04-284-0/+104
|
* Add a mock TLS provider.Nick Mathewson2021-04-281-27/+203
|
* Add a MockNetwork structure for testing.Nick Mathewson2021-04-283-0/+477
| | | | | This isn't a shadow replacement: it's just a testing fixture that we can use to try out code that wants to connect and/or listen.
* Add some more clippy warnings to our list.Nick Mathewson2021-04-2721-22/+127
|
* Enforce (and obey) clippy lints about exhaustive enums, structs.Nick Mathewson2021-04-2743-1/+98
| | | | | | | | These lints force us to declare our exported enums and exhaustive-looking structs as non-exhaustive (so that we can add to them in the future without breaking our API) or to explicitly disable the warning for a given enum/struct (to say that we _intend_ for additions to be a breaking change).
* cargo fix --edition-idiomsNick Mathewson2021-04-264-10/+10
|
* upgrade httparse and zeroizeNick Mathewson2021-04-254-4/+4
|
* Small doc fix.Nick Mathewson2021-04-241-1/+1
|
* Merge branch 'chanmgr_refactor_and_test'Nick Mathewson2021-04-2311-684/+922
|\ | | | | | | | | | | This is an apparent test coverage reduction in chanmgr, but that's only apparent: it actually throws away a lot of untested code that was previously hidden.
| * Another test in ChanMgr, for TargetInfo.Nick Mathewson2021-04-231-0/+19
| |
| * Refactor and simplify ChanMgr to use AbstractChanMgr.Nick Mathewson2021-04-239-680/+176
| |
| * Full documentations on the new parts of ChanMgr.Nick Mathewson2021-04-232-24/+157
| |
| * Start on tests for reactored ChanMsg.Nick Mathewson2021-04-233-50/+350
| |
| * Begin refactoring ChanMgr to have better separation of concernsNick Mathewson2021-04-224-0/+290
|/ | | | | Additionally: Use futures::future::Shared instead of event_listener.
* Define a helper for replacing the sleep functionality of a runtime.Nick Mathewson2021-04-223-0/+93
|
* Stop using anyhow in tor_chanmgr.Nick Mathewson2021-04-224-17/+33
| | | | | It seemed like a good idea at first, but we need to be able to tell the difference between these error types more easily.
* Add a yield_now() call to MockSleepProvider::advance()Nick Mathewson2021-04-212-15/+26
| | | | | | | | This is almost always what we want for testing: the task that is advancing time wants to give the other tasks a chance to run. Doing this turns MockSleepProvider::advance() into an async function.
* tor_rtcompat: add a yield_now() function.Nick Mathewson2021-04-212-0/+83
|
* More tests in tor-configNick Mathewson2021-04-212-0/+74
|
* Only list the supported encodings in the `Accept-Encoding` headerNick Mathewson2021-04-211-10/+27
| | | | Closes #113
* Use stream_pair() to write a test for tor_dirclient::downloadNick Mathewson2021-04-211-0/+50
|
* Add a "socketpair"-style linked-reader/writer implementation for testingNick Mathewson2021-04-213-1/+261
|
* Make zstd and xz compression optional, but on-by-default.Nick Mathewson2021-04-212-3/+17
|
* Disable a test on OSX; see arti#111Nick Mathewson2021-04-201-0/+5
|
* Test for tor_dirclient::read_headersNick Mathewson2021-04-201-0/+39
|
* Tests for tor_dirclient::read_and_decompressNick Mathewson2021-04-201-3/+86
|
* Test for tor_dirclient::read_until_limited()Nick Mathewson2021-04-201-0/+35
|
* tor-dirclient: more requests.rs testsNick Mathewson2021-04-201-10/+69
|
* Tests for sleep_until_wallclock.Nick Mathewson2021-04-201-6/+175
|
* A little more testing for tor_rtcompat::mock::time.Nick Mathewson2021-04-201-0/+25
|