| Crates.io | fake_instant |
| lib.rs | fake_instant |
| version | 0.5.0 |
| created_at | 2019-11-05 07:35:25.265118+00 |
| updated_at | 2023-04-29 19:41:10.903563+00 |
| description | Fake clock for deterministic testing of code depending on time. |
| homepage | https://github.com/MingweiSamuel/fake_instant |
| repository | https://github.com/MingweiSamuel/fake_instant |
| max_upload_size | |
| id | 178218 |
| size | 16,923 |
This crate supplies a FakeInstant 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 (former) 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.
Copyrights in the SAFE Network are retained by their contributors. No copyright assignment is required to contribute to this project.