feat: update random name generator
This commit is contained in:
25
backend/pkg/utils/random_name.go
Normal file
25
backend/pkg/utils/random_name.go
Normal file
File diff suppressed because one or more lines are too long
11
backend/pkg/utils/random_name_test.go
Normal file
11
backend/pkg/utils/random_name_test.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package utils
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestNames_Random(t *testing.T) {
|
||||
for i := 0; i < 10; i++ {
|
||||
|
||||
name := RandomNickname()
|
||||
t.Logf("name: %s", name)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user