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

Function assertSanitizedDeploymentConfig

support/support_test.go:202–209  ·  view source on GitHub ↗
(t *testing.T, dc *codersdk.DeploymentConfig)

Source from the content-addressed store, hash-verified

200}
201
202func assertSanitizedDeploymentConfig(t *testing.T, dc *codersdk.DeploymentConfig) {
203 t.Helper()
204 for _, opt := range dc.Options {
205 if opt.Annotations.IsSet("secret") {
206 assert.Empty(t, opt.Value.String())
207 }
208 }
209}
210
211func assertSanitizedWorkspace(t *testing.T, ws codersdk.Workspace) {
212 t.Helper()

Callers 1

TestRunFunction · 0.85

Calls 3

HelperMethod · 0.65
EmptyMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected