1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2024-11-28 09:08:44 +02:00
oauth2-proxy/pkg/clock
Nick Meves d3423408c7
Add a clock package for better time mocking (#1136)
* Add a clock package for better time mocking

* Make Clock a struct so it doesn't need initialization

* Test clock package

* Use atomic for live time tests

* Refer to same clock.Mock throughout methods
2021-04-18 18:25:57 +01:00
..
clock_suite_test.go Add a clock package for better time mocking (#1136) 2021-04-18 18:25:57 +01:00
clock_test.go Add a clock package for better time mocking (#1136) 2021-04-18 18:25:57 +01:00
clock.go Add a clock package for better time mocking (#1136) 2021-04-18 18:25:57 +01:00