MCPcopy Create free account
hub / github.com/cortexproject/cortex / TestDurationWithJitter_ZeroInputDuration

Function TestDurationWithJitter_ZeroInputDuration

pkg/util/time_test.go:46–48  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

44}
45
46func TestDurationWithJitter_ZeroInputDuration(t *testing.T) {
47 assert.Equal(t, time.Duration(0), DurationWithJitter(time.Duration(0), 0.5))
48}
49
50func TestDurationWithPositiveJitter(t *testing.T) {
51 const numRuns = 1000

Callers

nothing calls this directly

Calls 2

DurationWithJitterFunction · 0.85
EqualMethod · 0.65

Tested by

no test coverage detected