MCPcopy Create free account
hub / github.com/go-task/task / TestBashShellOptsGlobalLevel

Function TestBashShellOptsGlobalLevel

task_test.go:2713–2727  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2711}
2712
2713func TestBashShellOptsGlobalLevel(t *testing.T) {
2714 t.Parallel()
2715
2716 var buff bytes.Buffer
2717 e := task.NewExecutor(
2718 task.WithDir("testdata/shopts/global_level"),
2719 task.WithStdout(&buff),
2720 task.WithStderr(&buff),
2721 )
2722 require.NoError(t, e.Setup())
2723
2724 err := e.Run(t.Context(), &task.Call{Task: "globstar"})
2725 require.NoError(t, err)
2726 assert.Equal(t, "globstar\ton\n", buff.String())
2727}
2728
2729func TestBashShellOptsTaskLevel(t *testing.T) {
2730 t.Parallel()

Callers

nothing calls this directly

Calls 3

SetupMethod · 0.95
RunMethod · 0.95
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…