(t *testing.T)
| 2074 | } |
| 2075 | |
| 2076 | func 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 | |
| 2090 | func TestTaskDotenv(t *testing.T) { |
| 2091 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…