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

Function TestTaskDotenvParseErrorMessage

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

Source from the content-addressed store, hash-verified

2074}
2075
2076func TestTaskDotenvParseErrorMessage(t *testing.T) {
2077 t.Parallel()
2078
2079 e := task.NewExecutor(
2080 task.WithDir("testdata/dotenv/parse_error"),
2081 )
2082
2083 path, _ := filepath.Abs(filepath.Join(e.Dir, ".env-with-error"))
2084 expected := fmt.Sprintf("error reading env file %s:", path)
2085
2086 err := e.Setup()
2087 require.ErrorContains(t, err, expected)
2088}
2089
2090func TestTaskDotenv(t *testing.T) {
2091 t.Parallel()

Callers

nothing calls this directly

Calls 1

SetupMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…