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

Function TestBashShellOptsTaskLevel

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

Source from the content-addressed store, hash-verified

2727}
2728
2729func TestBashShellOptsTaskLevel(t *testing.T) {
2730 t.Parallel()
2731
2732 var buff bytes.Buffer
2733 e := task.NewExecutor(
2734 task.WithDir("testdata/shopts/task_level"),
2735 task.WithStdout(&buff),
2736 task.WithStderr(&buff),
2737 )
2738 require.NoError(t, e.Setup())
2739
2740 err := e.Run(t.Context(), &task.Call{Task: "globstar"})
2741 require.NoError(t, err)
2742 assert.Equal(t, "globstar\ton\n", buff.String())
2743}
2744
2745func TestBashShellOptsCommandLevel(t *testing.T) {
2746 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…