MCPcopy Index your code
hub / github.com/coder/coder / TestDeterministicUUIDGenerator

Function TestDeterministicUUIDGenerator

coderd/coderdtest/uuids_test.go:11–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestDeterministicUUIDGenerator(t *testing.T) {
12 t.Parallel()
13
14 ids := coderdtest.NewDeterministicUUIDGenerator()
15 require.Equal(t, ids.ID("g1"), ids.ID("g1"))
16 require.NotEqual(t, ids.ID("g1"), ids.ID("g2"))
17}

Callers

nothing calls this directly

Calls 3

IDMethod · 0.95
EqualMethod · 0.45

Tested by

no test coverage detected