https://github.com/mingweisamuel/fake_instant
Rust crate for mocking `Instant`
https://github.com/mingweisamuel/fake_instant
Last synced: 9 months ago
JSON representation
Rust crate for mocking `Instant`
- Host: GitHub
- URL: https://github.com/mingweisamuel/fake_instant
- Owner: MingweiSamuel
- License: bsd-3-clause
- Created: 2023-04-29T18:09:07.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-29T19:39:37.000Z (about 3 years ago)
- Last Synced: 2025-10-03T19:57:38.583Z (9 months ago)
- Language: Rust
- Size: 56.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-BSD
Awesome Lists containing this project
README
# fake_instant
[](https://crates.io/crates/fake_instant)
[](https://docs.rs/fake_instant)
[](https://github.com/MingweiSamuel/fake_instant/actions/workflows/ci.yml)
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.
## License
This (former) SAFE Network library is dual-licensed under the Modified BSD ([LICENSE-BSD](LICENSE-BSD) https://opensource.org/licenses/BSD-3-Clause) or the MIT license ([LICENSE-MIT](LICENSE-MIT) http://opensource.org/licenses/MIT) at your option.
## Contribution
Copyrights in the SAFE Network are retained by their contributors. No copyright assignment is required to contribute to this project.