build(deps): Bump github.com/jmhodges/clock from 0.0.0-20160418191101-880ee4c33548 to 1.2.0 (#6766)
Bumps https://github.com/jmhodges/clock from 0.0.0-20160418191101-880ee4c33548 to 1.2.0. This update contains no code changes, but does get us off of a pseudoversion.
This commit is contained in:
parent
235d177a20
commit
9800065061
2
go.mod
2
go.mod
|
|
@ -16,7 +16,7 @@ require (
|
|||
github.com/google/certificate-transparency-go v1.1.4
|
||||
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
|
||||
github.com/hpcloud/tail v1.0.0
|
||||
github.com/jmhodges/clock v0.0.0-20160418191101-880ee4c33548
|
||||
github.com/jmhodges/clock v1.2.0
|
||||
github.com/letsencrypt/challtestsrv v1.2.1
|
||||
github.com/letsencrypt/pkcs11key/v4 v4.0.0
|
||||
github.com/letsencrypt/validator/v10 v10.0.0-20230215210743-a0c7dfc17158
|
||||
|
|
|
|||
4
go.sum
4
go.sum
|
|
@ -204,8 +204,8 @@ github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpO
|
|||
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
|
||||
github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo=
|
||||
github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U=
|
||||
github.com/jmhodges/clock v0.0.0-20160418191101-880ee4c33548 h1:dYTbLf4m0a5u0KLmPfB6mgxbcV7588bOCx79hxa5Sr4=
|
||||
github.com/jmhodges/clock v0.0.0-20160418191101-880ee4c33548/go.mod h1:hGT6jSUVzF6no3QaDSMLGLEHtHSBSefs+MgcDWnmhmo=
|
||||
github.com/jmhodges/clock v1.2.0 h1:eq4kys+NI0PLngzaHEe7AmPT90XMGIEySD1JfV1PDIs=
|
||||
github.com/jmhodges/clock v1.2.0/go.mod h1:qKjhA7x7u/lQpPB1XAqX1b1lCI/w3/fNuYpI/ZjLynI=
|
||||
github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=
|
||||
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
|
||||
github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
||||
|
|
|
|||
|
|
@ -1,27 +1,28 @@
|
|||
clock
|
||||
====
|
||||
|
||||
[](https://travis-ci.org/jmhodges/clock)
|
||||
[](http://pkg.go.dev/github.com/jmhodges/clock)
|
||||
|
||||
Package clock provides an abstraction for system time that enables
|
||||
testing of time-sensitive code.
|
||||
Package clock provides an abstraction for system time that enables testing of
|
||||
time-sensitive code.
|
||||
|
||||
Where you'd use time.Now, instead use clk.Now where clk is an instance
|
||||
of Clock.
|
||||
Where you'd use `time.Now`, instead use `clk.Now` where `clk` is an instance of
|
||||
`clock.Clock`.
|
||||
|
||||
When running your code in production, pass it a Clock given by
|
||||
Default() and when you're running it in your tests, pass it an instance of Clock from NewFake().
|
||||
When running your code in production, pass it a `Clock` given by
|
||||
`clock.Default()` and when you're running it in your tests, pass it an instance
|
||||
of `Clock` from `NewFake()`.
|
||||
|
||||
When you do that, you can use FakeClock's Add and Set methods to
|
||||
control how time behaves in your code making them more reliable while
|
||||
also expanding the space of problems you can test.
|
||||
When you do that, you can use `FakeClock`'s `Add` and `Set` methods to control
|
||||
how time behaves in your tests. That makes the tests you'll write more reliable
|
||||
while also expanding the space of problems you can test.
|
||||
|
||||
This code intentionally does not attempt to provide an abstraction
|
||||
over time.Ticker and time.Timer because Go does not have the runtime
|
||||
or API hooks available to do reliably. See
|
||||
https://github.com/golang/go/issues/8869
|
||||
This code intentionally does not attempt to provide an abstraction over
|
||||
`time.Ticker` and `time.Timer` because Go does not have the runtime or API hooks
|
||||
available to do so reliably. See https://github.com/golang/go/issues/8869
|
||||
|
||||
Be sure to test Time equality with time.Time#Equal, not ==.
|
||||
As with any use of `time`, be sure to test `Time` equality with
|
||||
`time.Time#Equal`, not `==`.
|
||||
|
||||
For documentation, see the
|
||||
For API documentation, see the
|
||||
[godoc](http://godoc.org/github.com/jmhodges/clock).
|
||||
|
|
|
|||
|
|
@ -1,23 +1,20 @@
|
|||
// Package clock provides an abstraction for system time that enables
|
||||
// testing of time-sensitive code.
|
||||
// Package clock provides an abstraction for system time that enables testing of
|
||||
// time-sensitive code.
|
||||
//
|
||||
// Where you'd use time.Now, instead use clk.Now where clk is an
|
||||
// instance of Clock.
|
||||
// Where you'd use time.Now, instead use clk.Now where clk is an instance of
|
||||
// Clock.
|
||||
//
|
||||
// When running your code in production, pass it a Clock given by
|
||||
// Default() and when you're running it in your tests, pass it an
|
||||
// instance of Clock from NewFake().
|
||||
// clock.Default() and when you're running it in your tests, pass it an instance
|
||||
// of Clock from NewFake().
|
||||
//
|
||||
// When you do that, you can use FakeClock's Add and Set methods to
|
||||
// control how time behaves in your code making them more reliable
|
||||
// When you do that, you can use FakeClock's Add and Set methods to control how
|
||||
// time behaves in your tests. That makes the tests you'll write more reliable
|
||||
// while also expanding the space of problems you can test.
|
||||
//
|
||||
// This code intentionally does not attempt to provide an abstraction
|
||||
// over time.Ticker and time.Timer because Go does not have the
|
||||
// runtime or API hooks available to do reliably. See
|
||||
// https://github.com/golang/go/issues/8869
|
||||
//
|
||||
// Be sure to test Time equality with time.Time#Equal, not ==.
|
||||
// This code intentionally does not attempt to provide an abstraction over
|
||||
// time.Ticker and time.Timer because Go does not have the runtime or API hooks
|
||||
// available to do so reliably. See https://github.com/golang/go/issues/8869
|
||||
package clock
|
||||
|
||||
import (
|
||||
|
|
|
|||
|
|
@ -186,8 +186,8 @@ github.com/hpcloud/tail/ratelimiter
|
|||
github.com/hpcloud/tail/util
|
||||
github.com/hpcloud/tail/watch
|
||||
github.com/hpcloud/tail/winfile
|
||||
# github.com/jmhodges/clock v0.0.0-20160418191101-880ee4c33548
|
||||
## explicit
|
||||
# github.com/jmhodges/clock v1.2.0
|
||||
## explicit; go 1.17
|
||||
github.com/jmhodges/clock
|
||||
# github.com/letsencrypt/challtestsrv v1.2.1
|
||||
## explicit; go 1.13
|
||||
|
|
|
|||
Loading…
Reference in New Issue