summaryrefslogtreecommitdiff
path: root/crates/tor-rtmock/src/util.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-rtmock: Use derive-adhoc for composite runtimesIan Jackson2023-07-071-48/+59
|
* tor-rtmock: statically assert that the macro makes a Runtime implIan Jackson2023-07-061-0/+6
|
* tor-rtmock: Use the same specified field for BlockOn and SpawnIan Jackson2023-07-061-4/+5
| | | | These are always the same and probably always will be.
* tor-rtmock: net: "Provide" a UDP "implementation" which doesn't workIan Jackson2023-07-061-3/+2
| | | | | | | | | | Nothing in our tree actually *uses* the UDP in tests. We want a mock UDP provider that isn't part of a real runtime, so that we can make a totally-mock runtime for properly controlled testing. It seems best to make this part of MockNetProvider rather than a separate type.
* tor-rtmock: Introduce impl_runtime_prelude (fmt)Ian Jackson2023-07-061-1/+3
|
* tor-rtmock: Introduce impl_runtime_preludeIan Jackson2023-07-061-0/+20
| | | | | This deduplicates some imports, which would otherwise be about to become triplicated.
* tor-rtmock: Introduce impl_runtime! macroIan Jackson2023-07-061-0/+98
This deduplicates some trait delegation. We want this now because we're about to introduce a third mock runtime, so this would become triplication otherwise.