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

Function TestShortTaskNotation

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

Source from the content-addressed store, hash-verified

1959}
1960
1961func TestShortTaskNotation(t *testing.T) {
1962 t.Parallel()
1963
1964 const dir = "testdata/short_task_notation"
1965
1966 var buff bytes.Buffer
1967 e := task.NewExecutor(
1968 task.WithDir(dir),
1969 task.WithStdout(&buff),
1970 task.WithStderr(&buff),
1971 task.WithSilent(true),
1972 )
1973 require.NoError(t, e.Setup())
1974 require.NoError(t, e.Run(t.Context(), &task.Call{Task: "default"}))
1975 assert.Equal(t, "string-slice-1\nstring-slice-2\nstring\n", buff.String())
1976}
1977
1978func TestDotenvShouldIncludeAllEnvFiles(t *testing.T) {
1979 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…