#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

#32 in #instant

Download history 148/week @ 2024-03-11 119/week @ 2024-03-18 73/week @ 2024-03-25 962/week @ 2024-04-01 127/week @ 2024-04-08 23/week @ 2024-04-15 58/week @ 2024-04-22 30/week @ 2024-04-29 20/week @ 2024-05-06 31/week @ 2024-05-13 57/week @ 2024-05-20 42/week @ 2024-05-27 248/week @ 2024-06-03 54/week @ 2024-06-10 72/week @ 2024-06-17 61/week @ 2024-06-24

440 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