Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Since ¶ added in v3.35.0
Since returns the time elapsed since t. It is shorthand for time.Now().Sub(t).
func StubTestHookNewTimer ¶
StubTestHookNewTimer stubs all creation of Timers for ydb packages. It returns cleanup function that MUST be called after test execution.
NOTE: tests using this function MUST not be called concurrently.
func StubTestHookTimeNow ¶
StubTestHookTimeNow stubs all `Now()` use for ydb packages.
It sets up current time to given now time. It returns time shifter function that shifts current time by given duration. It returns cleanup function that MUST be called after test execution.
NOTE: tests using this function MUST not be called concurrently.
Types ¶
Click to show internal directories.
Click to hide internal directories.