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

Function IsScaleTestUser

scaletest/loadtestutil/names.go:55–58  ·  view source on GitHub ↗

IsScaleTestUser checks if a username indicates it was created for scale testing.

(username, email string)

Source from the content-addressed store, hash-verified

53
54// IsScaleTestUser checks if a username indicates it was created for scale testing.
55func IsScaleTestUser(username, email string) bool {
56 return strings.HasPrefix(username, ScaleTestPrefix+"-") ||
57 strings.HasSuffix(email, EmailDomain)
58}
59
60// IsScaleTestWorkspace checks if a workspace name indicates it was created for scale testing.
61func IsScaleTestWorkspace(workspaceName, ownerName string) bool {

Callers 1

getScaletestUsersFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected