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

Function TestCompileUserEmail

internal/utils/string_utils_test.go:53–59  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

51}
52
53func TestCompileUserEmail(t *testing.T) {
54 // Test with valid email
55 assert.Equal(t, "user@example.com", utils.CompileUserEmail("user@example.com", "example.com"))
56
57 // Test with invalid email
58 assert.Equal(t, "user@example.com", utils.CompileUserEmail("user", "example.com"))
59}

Callers

nothing calls this directly

Calls 1

CompileUserEmailFunction · 0.92

Tested by

no test coverage detected