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

Function TestPOSIXShellOptsCommandLevel

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

Source from the content-addressed store, hash-verified

2695}
2696
2697func TestPOSIXShellOptsCommandLevel(t *testing.T) {
2698 t.Parallel()
2699
2700 var buff bytes.Buffer
2701 e := task.NewExecutor(
2702 task.WithDir("testdata/shopts/command_level"),
2703 task.WithStdout(&buff),
2704 task.WithStderr(&buff),
2705 )
2706 require.NoError(t, e.Setup())
2707
2708 err := e.Run(t.Context(), &task.Call{Task: "pipefail"})
2709 require.NoError(t, err)
2710 assert.Equal(t, "pipefail\ton\n", buff.String())
2711}
2712
2713func TestBashShellOptsGlobalLevel(t *testing.T) {
2714 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…