Crates.io | sn_fake_clock |
lib.rs | sn_fake_clock |
version | 0.4.14 |
source | src |
created_at | 2020-09-01 13:39:42.467177 |
updated_at | 2021-06-09 11:15:26.615847 |
description | Fake clock for deterministic testing of code depending on time. |
homepage | https://maidsafe.net |
repository | https://github.com/maidsafe/sn_fake_clock |
max_upload_size | |
id | 283398 |
size | 31,066 |
Crate | Documentation |
---|---|
MaidSafe website | SAFE Dev Forum | SAFE Network Forum |
---|
This crate supplies a FakeClock
struct, which mimics the interface of std::time::Instant
and enables full control over the flow of time as perceived by the code during testing.
This SAFE Network library is dual-licensed under the Modified BSD (LICENSE-BSD https://opensource.org/licenses/BSD-3-Clause) or the MIT license (LICENSE-MIT http://opensource.org/licenses/MIT) at your option.
Want to contribute? Great :tada:
There are many ways to give back to the project, whether it be writing new code, fixing bugs, or just reporting errors. All forms of contributions are encouraged!
For instructions on how to contribute, see our Guide to contributing.