MCPcopy Index your code
hub / github.com/cortexproject/cortex / Test_Convert

Function Test_Convert

pkg/api/queryapi/util_test.go:10–15  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func Test_Convert(t *testing.T) {
11 time := time.Now().UnixMilli()
12
13 require.Equal(t, time, convertMsToTime(time).UnixMilli())
14 require.Equal(t, time, convertMsToDuration(time).Milliseconds())
15}

Callers

nothing calls this directly

Calls 3

convertMsToTimeFunction · 0.85
convertMsToDurationFunction · 0.85
EqualMethod · 0.65

Tested by

no test coverage detected