Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ NotEmpty
Method
NotEmpty
enterprise/wsproxy/wsproxy.go:702–706 ·
view source on GitHub ↗
(name string, v any)
Source
from the content-addressed store, hash-verified
700
}
701
702
func
(e *optErrors) NotEmpty(name string, v any) {
703
if
reflect.ValueOf(v).IsZero() {
704
*e = append(*e, xerrors.Errorf(
"%s is required, got the zero value"
, name))
705
}
706
}
Callers
15
Validate
Method · 0.95
TestExternalAuthCallback
Function · 0.80
TestGitSSHKey
Function · 0.80
TestAgentGitSSHKey
Function · 0.80
TestWorkspaceAgent
Function · 0.80
TestWorkspaceAgentLogsFormat
Function · 0.80
TestWorkspaceAgentContainers
Function · 0.80
TestWorkspaceAgent_Metadata
Function · 0.80
TestUserTailnetTelemetry
Function · 0.80
TestUserOAuth2Github
Function · 0.80
TestListChats
Function · 0.80
TestListChatModelConfigs
Function · 0.80
Calls
2
IsZero
Method · 0.45
Errorf
Method · 0.45
Tested by
15
TestExternalAuthCallback
Function · 0.64
TestGitSSHKey
Function · 0.64
TestAgentGitSSHKey
Function · 0.64
TestWorkspaceAgent
Function · 0.64
TestWorkspaceAgentLogsFormat
Function · 0.64
TestWorkspaceAgentContainers
Function · 0.64
TestWorkspaceAgent_Metadata
Function · 0.64
TestUserTailnetTelemetry
Function · 0.64
TestUserOAuth2Github
Function · 0.64
TestListChats
Function · 0.64
TestListChatModelConfigs
Function · 0.64
TestGetChat
Function · 0.64