MCPcopy Index your code
hub / github.com/coder/coder / RandomName

Function RandomName

coderd/coderdtest/coderdtest.go:1754–1758  ·  view source on GitHub ↗

RandomName returns a random name in title case (e.g. "Happy Einstein").

(_ testing.TB)

Source from the content-addressed store, hash-verified

1752
1753// RandomName returns a random name in title case (e.g. "Happy Einstein").
1754func RandomName(_ testing.TB) string {
1755 return cases.Title(language.English).String(
1756 namesgenerator.NameWith(" "),
1757 )
1758}
1759
1760// Used to easily create an HTTP transport!
1761type roundTripper func(req *http.Request) (*http.Response, error)

Callers 3

TestUpdateUserProfileFunction · 0.92
TestRandomNameFunction · 0.92
createAnotherUserRetryFunction · 0.85

Calls 2

NameWithFunction · 0.92
StringMethod · 0.45

Tested by 2

TestUpdateUserProfileFunction · 0.74
TestRandomNameFunction · 0.74