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

Function TestDotenvHasEnvVarInPath

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

Source from the content-addressed store, hash-verified

2060}
2061
2062func TestDotenvHasEnvVarInPath(t *testing.T) { // nolint:paralleltest // cannot run in parallel
2063 t.Setenv("ENV_VAR", "testing")
2064
2065 tt := fileContentTest{
2066 Dir: "testdata/dotenv/env_var_in_path",
2067 Target: "default",
2068 TrimSpace: false,
2069 Files: map[string]string{
2070 "var.txt": "VAR='var_in_dot_env_2'\n",
2071 },
2072 }
2073 tt.Run(t)
2074}
2075
2076func TestTaskDotenvParseErrorMessage(t *testing.T) {
2077 t.Parallel()

Callers

nothing calls this directly

Calls 1

RunMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…