internal

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TimeNowUnix = func() int64 {
	return time.Now().Unix()
}

easier to mock, for tests

Functions

func WithTimeMock

func WithTimeMock(t *testing.T, times ...int64) func()

allows mocking TimeNowUnix returns a function to cleanup

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL