MCPcopy Index your code
hub / github.com/go-task/task / TestEnv

Function TestEnv

executor_test.go:240–257  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

238}
239
240func TestEnv(t *testing.T) {
241 t.Setenv("QUX", "from_os")
242 NewExecutorTest(t,
243 WithName("env precedence disabled"),
244 WithExecutorOptions(
245 task.WithDir("testdata/env"),
246 task.WithSilent(true),
247 ),
248 )
249 NewExecutorTest(t,
250 WithName("env precedence enabled"),
251 WithExecutorOptions(
252 task.WithDir("testdata/env"),
253 task.WithSilent(true),
254 ),
255 WithExperiment(&experiments.EnvPrecedence, 1),
256 )
257}
258
259func TestVars(t *testing.T) {
260 t.Parallel()

Callers

nothing calls this directly

Calls 4

NewExecutorTestFunction · 0.85
WithNameFunction · 0.85
WithExecutorOptionsFunction · 0.85
WithExperimentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…