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

Function TestPOSIXShellOptsTaskLevel

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

Source from the content-addressed store, hash-verified

2679}
2680
2681func TestPOSIXShellOptsTaskLevel(t *testing.T) {
2682 t.Parallel()
2683
2684 var buff bytes.Buffer
2685 e := task.NewExecutor(
2686 task.WithDir("testdata/shopts/task_level"),
2687 task.WithStdout(&buff),
2688 task.WithStderr(&buff),
2689 )
2690 require.NoError(t, e.Setup())
2691
2692 err := e.Run(t.Context(), &task.Call{Task: "pipefail"})
2693 require.NoError(t, err)
2694 assert.Equal(t, "pipefail\ton\n", buff.String())
2695}
2696
2697func TestPOSIXShellOptsCommandLevel(t *testing.T) {
2698 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…