Clock is a small library for mocking time in Go.
Full Changelog: https://github.com/benbjohnson/clock/compare/v1.3.4...v1.3.5
Full Changelog: https://github.com/benbjohnson/clock/compare/v1.3.3...v1.3.4
This release adds support for mocking context.WithTimeout
and context.WithDeadline
, thanks to @morigs
This release adds a Duration type alias (#30) and an Until method (#38), as well as addressing some concurrency issues (#18).
This release adds a Reset()
method via https://github.com/benbjohnson/clock/pull/25.
This version also requires at least Go 1.15 or higher.