Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 512a26c commit 371476aCopy full SHA for 371476a
testutil/names.go
@@ -31,8 +31,7 @@ func GetRandomName(t testing.TB) string {
31
func GetRandomNameHyphenated(t testing.TB) string {
32
t.Helper()
33
name := namesgenerator.GetRandomName(0)
34
- name = strings.ReplaceAll(name, "_", "-")
35
- return incSuffix(name, n.Add(1), maxNameLen)
+ return strings.ReplaceAll(name, "_", "-")
36
}
37
38
func incSuffix(s string, num int64, maxLen int) string {
0 commit comments