MCPcopy
hub / github.com/tinyauthapp/tinyauth / TestGenerateUUID

Function TestGenerateUUID

internal/utils/security_utils_test.go:140–149  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

138}
139
140func TestGenerateUUID(t *testing.T) {
141 // Consistent output for same input
142 id1 := utils.GenerateUUID("teststring")
143 id2 := utils.GenerateUUID("teststring")
144 assert.Equal(t, id1, id2)
145
146 // Different output for different input
147 id3 := utils.GenerateUUID("differentstring")
148 assert.Assert(t, id1 != id3)
149}

Callers

nothing calls this directly

Calls 1

GenerateUUIDFunction · 0.92

Tested by

no test coverage detected