GetRandomName returns a random name with a unique suffix, truncated to 32 characters to fit common name length limits in tests.
(t testing.TB)
| 9 | // GetRandomName returns a random name with a unique suffix, truncated to 32 |
| 10 | // characters to fit common name length limits in tests. |
| 11 | func GetRandomName(t testing.TB) string { |
| 12 | t.Helper() |
| 13 | return namesgenerator.UniqueName() |
| 14 | } |
| 15 | |
| 16 | // GetRandomNameHyphenated is like GetRandomName but uses hyphens instead of |
| 17 | // underscores. |