MCPcopy Create free account
hub / github.com/coder/coder / IsScaleTestWorkspace

Function IsScaleTestWorkspace

scaletest/loadtestutil/names.go:61–64  ·  view source on GitHub ↗

IsScaleTestWorkspace checks if a workspace name indicates it was created for scale testing.

(workspaceName, ownerName string)

Source from the content-addressed store, hash-verified

59
60// IsScaleTestWorkspace checks if a workspace name indicates it was created for scale testing.
61func IsScaleTestWorkspace(workspaceName, ownerName string) bool {
62 return strings.HasPrefix(workspaceName, ScaleTestPrefix+"-") ||
63 strings.HasPrefix(ownerName, ScaleTestPrefix+"-")
64}

Callers 1

getScaletestWorkspacesFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected