MCPcopy Index your code
hub / github.com/kopia/kopia / SetEnvNamePrefixForTesting

Method SetEnvNamePrefixForTesting

cli/app.go:347–349  ·  view source on GitHub ↗

SetEnvNamePrefixForTesting sets the name prefix to be used for all environment variable names for testing.

(prefix string)

Source from the content-addressed store, hash-verified

345
346// SetEnvNamePrefixForTesting sets the name prefix to be used for all environment variable names for testing.
347func (c *App) SetEnvNamePrefixForTesting(prefix string) {
348 c.envNamePrefix = prefix
349}
350
351// EnvName overrides the provided environment variable name for testability.
352func (c *App) EnvName(n string) string {

Callers 1

StartMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected