summaryrefslogtreecommitdiff
path: root/crates/tor-rtmock/src/runtime.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-rtmock: MockRuntime: Work around borrowck in Rust 1.65Ian Jackson2023-09-181-0/+2
|
* tor-rtmock: MockRuntime: Move deprecated advance to end of impl blockIan Jackson2023-09-181-17/+17
| | | | This will change the ordering in the docs.
* tor-rtmock: MockRuntime: Add tests for advance_*Ian Jackson2023-09-181-0/+177
|
* tor-rtmock: MockRuntime: Provide advance_by() etc. and deprecate .advance()Ian Jackson2023-09-181-1/+100
| | | | | | | | advance_by can be used in a more natural way, rather than having to manually advance the clock in chunks to avoid triggering only the first sleep. It can also detects some "timeout triggered precisely" edge case bugs.
* tor-rtmock: MockRuntime: Provide spawn_identified() wrapperIan Jackson2023-09-181-0/+13
| | | | We should encourage the use of this, rather than Spawn::spawn()
* tor-rtmock: Expose time_until_next_timeout on MockRuntimeIan Jackson2023-08-231-0/+25
|
* tor-rtmock: Use derive-adhoc for composite runtimesIan Jackson2023-07-071-8/+5
|
* tor-rtmock: Use the same specified field for BlockOn and SpawnIan Jackson2023-07-061-2/+1
| | | | These are always the same and probably always will be.
* tor-rtmock: task: clarify progress_until_stalled a littleIan Jackson2023-07-061-0/+2
|
* tor-rtmock: Runtime: Expand on "allowed" documentationIan Jackson2023-07-061-3/+33
|
* tor-rtmock: MockRuntime: provide test_with_variousIan Jackson2023-07-061-0/+43
| | | | In both fallible and infallible variants, for convenience.
* tor-rtmock: MockExecutor: Configurable scheduling policyIan Jackson2023-07-061-1/+13
|
* tor-rtmock: Provide MockRuntimeIan Jackson2023-07-061-0/+129