#time-clock #fake #deterministic #testing #depending #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

#7 in #time-clock

Download history 87/week @ 2023-11-20 72/week @ 2023-11-27 55/week @ 2023-12-04 188/week @ 2023-12-11 16/week @ 2023-12-18 114/week @ 2023-12-25 79/week @ 2024-01-01 40/week @ 2024-01-08 125/week @ 2024-01-15 85/week @ 2024-01-22 140/week @ 2024-01-29 98/week @ 2024-02-19 114/week @ 2024-02-26 28/week @ 2024-03-04

240 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