MCPcopy 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
702func (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

ValidateMethod · 0.95
TestExternalAuthCallbackFunction · 0.80
TestGitSSHKeyFunction · 0.80
TestAgentGitSSHKeyFunction · 0.80
TestWorkspaceAgentFunction · 0.80
TestUserTailnetTelemetryFunction · 0.80
TestUserOAuth2GithubFunction · 0.80
TestListChatsFunction · 0.80
TestListChatModelConfigsFunction · 0.80

Calls 2

IsZeroMethod · 0.45
ErrorfMethod · 0.45

Tested by 15

TestExternalAuthCallbackFunction · 0.64
TestGitSSHKeyFunction · 0.64
TestAgentGitSSHKeyFunction · 0.64
TestWorkspaceAgentFunction · 0.64
TestUserTailnetTelemetryFunction · 0.64
TestUserOAuth2GithubFunction · 0.64
TestListChatsFunction · 0.64
TestListChatModelConfigsFunction · 0.64
TestGetChatFunction · 0.64