fake_instant 0.5.0

Fake clock for deterministic testing of code depending on time.
Documentation
  • Coverage
  • 100%
    12 out of 12 items documented0 out of 11 items with examples
  • Size
  • Source code size: 16.9 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 260.0 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 7s Average build duration of successful builds.
  • all releases: 7s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • MingweiSamuel/fake_instant
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • MingweiSamuel

fake_instant

crates.io docs.rs gh-actions CI

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 https://opensource.org/licenses/BSD-3-Clause) or the MIT license (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.