#time #control-flow #fake #deterministic #instant #fake-clock

sn_fake_clock

Fake clock for deterministic testing of code depending on time

15 releases

0.4.14 Jun 9, 2021
0.4.13 Mar 3, 2021
0.4.11 Feb 25, 2021
0.4.9 Jan 20, 2021
0.4.2 Sep 17, 2020

#247 in Testing

Download history 1423/week @ 2023-11-30 2379/week @ 2023-12-07 2198/week @ 2023-12-14 1156/week @ 2023-12-21 1437/week @ 2023-12-28 1330/week @ 2024-01-04 1266/week @ 2024-01-11 1797/week @ 2024-01-18 1997/week @ 2024-01-25 1389/week @ 2024-02-01 1887/week @ 2024-02-08 1498/week @ 2024-02-15 2136/week @ 2024-02-22 3225/week @ 2024-02-29 2953/week @ 2024-03-07 2167/week @ 2024-03-14

10,820 downloads per month
Used in 4 crates

MIT OR BSD-3-Clause

11KB
207 lines

sn_fake_clock

Crate Documentation
Documentation
MaidSafe website SAFE Dev Forum SAFE Network Forum

Overview

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.

License

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.

Contributing

Want to contribute? Great 🎉

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.

No runtime deps