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

Function TestDotenvHasLocalVarInPath

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

Source from the content-addressed store, hash-verified

2043}
2044
2045func TestDotenvHasLocalVarInPath(t *testing.T) {
2046 t.Parallel()
2047
2048 tt := fileContentTest{
2049 Dir: "testdata/dotenv/local_var_in_path",
2050 Target: "default",
2051 TrimSpace: false,
2052 Files: map[string]string{
2053 "var.txt": "VAR='var_in_dot_env_3'\n",
2054 },
2055 }
2056 t.Run("", func(t *testing.T) {
2057 t.Parallel()
2058 tt.Run(t)
2059 })
2060}
2061
2062func TestDotenvHasEnvVarInPath(t *testing.T) { // nolint:paralleltest // cannot run in parallel
2063 t.Setenv("ENV_VAR", "testing")

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…