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

Function seedSecretDeploymentOptions

cli/support_test.go:479–489  ·  view source on GitHub ↗
(t *testing.T, dc *codersdk.DeploymentConfig, secretValue string)

Source from the content-addressed store, hash-verified

477}
478
479func seedSecretDeploymentOptions(t *testing.T, dc *codersdk.DeploymentConfig, secretValue string) {
480 t.Helper()
481 if dc == nil {
482 dc = &codersdk.DeploymentConfig{}
483 }
484 for _, opt := range dc.Options {
485 if codersdk.IsSecretDeploymentOption(opt) {
486 opt.Value.Set(secretValue)
487 }
488 }
489}
490
491func setupSupportBundleTestFixture(
492 ctx context.Context,

Callers 1

TestSupportBundleFunction · 0.85

Calls 3

IsSecretDeploymentOptionFunction · 0.92
HelperMethod · 0.65
SetMethod · 0.65

Tested by

no test coverage detected