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

Function TestUserIndex_GetUpdatedAt

pkg/util/users/index_test.go:81–91  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

79}
80
81func TestUserIndex_GetUpdatedAt(t *testing.T) {
82 t.Parallel()
83
84 now := time.Now()
85 idx := &UserIndex{
86 UpdatedAt: now.Unix(),
87 }
88
89 // Test GetUpdatedAt returns the correct time
90 assert.Equal(t, now.Unix(), idx.GetUpdatedAt().Unix())
91}
92
93func TestWriteUserIndex_Error(t *testing.T) {
94 t.Parallel()

Callers

nothing calls this directly

Calls 2

GetUpdatedAtMethod · 0.95
EqualMethod · 0.65

Tested by

no test coverage detected