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

Function TestPlatforms

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

Source from the content-addressed store, hash-verified

2649}
2650
2651func TestPlatforms(t *testing.T) {
2652 t.Parallel()
2653
2654 var buff bytes.Buffer
2655 e := task.NewExecutor(
2656 task.WithDir("testdata/platforms"),
2657 task.WithStdout(&buff),
2658 task.WithStderr(&buff),
2659 )
2660 require.NoError(t, e.Setup())
2661 require.NoError(t, e.Run(t.Context(), &task.Call{Task: "build-" + runtime.GOOS}))
2662 assert.Equal(t, fmt.Sprintf("task: [build-%s] echo 'Running task on %s'\nRunning task on %s\n", runtime.GOOS, runtime.GOOS, runtime.GOOS), buff.String())
2663}
2664
2665func TestPOSIXShellOptsGlobalLevel(t *testing.T) {
2666 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…