MCPcopy
hub / github.com/go-task/task / TestVars

Function TestVars

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

Source from the content-addressed store, hash-verified

257}
258
259func TestVars(t *testing.T) {
260 t.Parallel()
261 NewExecutorTest(t,
262 WithExecutorOptions(
263 task.WithDir("testdata/vars"),
264 task.WithSilent(true),
265 ),
266 )
267 NewExecutorTest(t,
268 WithName("cli-var-priority-default"),
269 WithExecutorOptions(
270 task.WithDir("testdata/vars"),
271 task.WithSilent(true),
272 ),
273 WithTask("cli-var-priority"),
274 )
275 NewExecutorTest(t,
276 WithName("cli-var-priority-override"),
277 WithExecutorOptions(
278 task.WithDir("testdata/vars"),
279 task.WithSilent(true),
280 ),
281 WithTask("cli-var-priority"),
282 WithVar("CLI_VAR", "from_cli"),
283 )
284}
285
286func TestSecretVars(t *testing.T) {
287 t.Parallel()

Callers

nothing calls this directly

Calls 5

NewExecutorTestFunction · 0.85
WithExecutorOptionsFunction · 0.85
WithNameFunction · 0.85
WithTaskFunction · 0.85
WithVarFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…