#clock #time #fake #testing #deterministic #instant #sn-fake-clock

unmaintained fake_clock

Fake clock for deterministic testing of code depending on time

4 releases (2 breaking)

Uses old Rust 2015

0.3.1 Oct 22, 2020
0.3.0 Jan 5, 2018
0.2.0 Jul 25, 2017
0.1.0 Apr 5, 2017

#34 in #instant

Download history 87/week @ 2024-07-22 140/week @ 2024-07-29 201/week @ 2024-08-05 73/week @ 2024-08-12 227/week @ 2024-08-19 42/week @ 2024-08-26 25/week @ 2024-09-02 50/week @ 2024-09-09 9/week @ 2024-09-16 83/week @ 2024-09-23 139/week @ 2024-09-30 56/week @ 2024-10-07 109/week @ 2024-10-14 98/week @ 2024-10-21 100/week @ 2024-10-28 82/week @ 2024-11-04

399 downloads per month
Used in 4 crates (3 directly)

GPL-3.0 license

25KB
93 lines

This crate has been renamed to sn_fake_clock

https://crates.io/crates/sn_fake_clock


lib.rs:

fake_clock

A crate providing a virtual clock mimicking std::time::Instant's interface, enabling full control over the flow of time during testing.

No runtime deps