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

Function TestPOSIXShellOptsGlobalLevel

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

Source from the content-addressed store, hash-verified

2663}
2664
2665func TestPOSIXShellOptsGlobalLevel(t *testing.T) {
2666 t.Parallel()
2667
2668 var buff bytes.Buffer
2669 e := task.NewExecutor(
2670 task.WithDir("testdata/shopts/global_level"),
2671 task.WithStdout(&buff),
2672 task.WithStderr(&buff),
2673 )
2674 require.NoError(t, e.Setup())
2675
2676 err := e.Run(t.Context(), &task.Call{Task: "pipefail"})
2677 require.NoError(t, err)
2678 assert.Equal(t, "pipefail\ton\n", buff.String())
2679}
2680
2681func TestPOSIXShellOptsTaskLevel(t *testing.T) {
2682 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…