summaryrefslogtreecommitdiffstats
path: root/internal/pausedtimer/timer.go
diff options
context:
space:
mode:
authorMarc Pervaz Boocha <marcpervaz@qburst.com>2025-02-25 09:47:02 +0530
committerMarc Pervaz Boocha <marcpervaz@qburst.com>2025-02-27 13:38:14 +0530
commita5194b3be4768d42b27ef9e2d0d52479e0436758 (patch)
tree4e60b1b790e63b8aaf8dba77acbfe4599dedbee0 /internal/pausedtimer/timer.go
parentAdd additional test cases to improve coverage and robustness (diff)
downloadcache-a5194b3be4768d42b27ef9e2d0d52479e0436758.tar
cache-a5194b3be4768d42b27ef9e2d0d52479e0436758.tar.gz
cache-a5194b3be4768d42b27ef9e2d0d52479e0436758.tar.bz2
cache-a5194b3be4768d42b27ef9e2d0d52479e0436758.tar.lz
cache-a5194b3be4768d42b27ef9e2d0d52479e0436758.tar.xz
cache-a5194b3be4768d42b27ef9e2d0d52479e0436758.tar.zst
cache-a5194b3be4768d42b27ef9e2d0d52479e0436758.zip
Removed testify and improved tests
Diffstat (limited to 'internal/pausedtimer/timer.go')
-rw-r--r--internal/pausedtimer/timer.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/pausedtimer/timer.go b/internal/pausedtimer/timer.go
index 691c257..6ff212c 100644
--- a/internal/pausedtimer/timer.go
+++ b/internal/pausedtimer/timer.go
@@ -22,6 +22,7 @@ func New(d time.Duration) *PauseTimer {
ret.Ticker = time.NewTicker(math.MaxInt64)
ret.Reset(0)
}
+
return ret
}
@@ -29,6 +30,7 @@ func New(d time.Duration) *PauseTimer {
func NewStopped(d time.Duration) *PauseTimer {
ret := New(d)
ret.Stop()
+
return ret
}