MCPcopy Index your code
hub / github.com/jetify-com/devbox / propagateEnvVars

Function propagateEnvVars

testscripts/testrunner/setupenv.go:80–86  ·  view source on GitHub ↗

propagateEnvVars propagates the values of environment variables to the test environment.

(env *testscript.Env, vars ...string)

Source from the content-addressed store, hash-verified

78// propagateEnvVars propagates the values of environment variables to the test
79// environment.
80func propagateEnvVars(env *testscript.Env, vars ...string) {
81 for _, key := range vars {
82 if v, ok := os.LookupEnv(key); ok {
83 env.Setenv(key, v)
84 }
85 }
86}

Callers 1

setupTestEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected