MCPcopy Create free account
hub / github.com/dbProjectRED/redimo.go / TestXIDGeneration

Function TestXIDGeneration

streams_test.go:274–277  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

272}
273
274func TestXIDGeneration(t *testing.T) {
275 assert.Equal(t, "00000000000000012345-00000000000000000000", NewTimeXID(time.Unix(12345, 0)).First().String())
276 assert.Equal(t, "00000000000000012345-99999999999999999999", NewTimeXID(time.Unix(12345, 0)).Last().String())
277}
278
279func TestRanges(t *testing.T) {
280 c := newClient(t)

Callers

nothing calls this directly

Calls 4

NewTimeXIDFunction · 0.85
FirstMethod · 0.80
LastMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected