clock

Clock is a small library for mocking time in Go. (by benbjohnson)

Clock Alternatives

Similar projects and alternatives to clock

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better clock alternative or higher similarity.

clock reviews and mentions

Posts with mentions or reviews of clock. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-18.
  • benbjohnson/clock (time mocking) is now archived
    2 projects | /r/golang | 18 May 2023
  • The Pocket Guide to Debugging
    1 project | news.ycombinator.com | 24 Dec 2022
    I recently discovered the joy of abstracting away time. I write a lot of software in Go for work. This library, https://github.com/benbjohnson/clock, provides a Clock interface that can be used for creating either clocks with the same interface as the standard "time" module, or to create a mock clock that increments to the next tick on any and all tickers defined in the app. It really makes unit tests go faster, though it can be tricky to get the code right.

Stats

Basic clock repo stats
2
647
7.7
11 months ago

benbjohnson/clock is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of clock is Go.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com