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

Function TestBashShellOptsCommandLevel

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

Source from the content-addressed store, hash-verified

2743}
2744
2745func TestBashShellOptsCommandLevel(t *testing.T) {
2746 t.Parallel()
2747
2748 var buff bytes.Buffer
2749 e := task.NewExecutor(
2750 task.WithDir("testdata/shopts/command_level"),
2751 task.WithStdout(&buff),
2752 task.WithStderr(&buff),
2753 )
2754 require.NoError(t, e.Setup())
2755
2756 err := e.Run(t.Context(), &task.Call{Task: "globstar"})
2757 require.NoError(t, err)
2758 assert.Equal(t, "globstar\ton\n", buff.String())
2759}
2760
2761func TestSplitArgs(t *testing.T) {
2762 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…