(t *testing.T)
| 77 | } |
| 78 | |
| 79 | func TestResolvePath_HomeUnset(t *testing.T) { |
| 80 | // Cannot be parallel — modifies HOME env var. |
| 81 | t.Setenv("HOME", "") |
| 82 | // Also clear USERPROFILE for Windows compatibility. |
| 83 | t.Setenv("USERPROFILE", "") |
| 84 | |
| 85 | require.Equal(t, "", agentcontextconfig.ResolvePath("~", platformAbsPath("base"))) |
| 86 | require.Equal(t, "", agentcontextconfig.ResolvePath("~/docs", platformAbsPath("base"))) |
| 87 | } |
| 88 | |
| 89 | func TestResolvePaths(t *testing.T) { //nolint:tparallel // subtests using t.Setenv cannot be parallel |
| 90 | t.Run("EmptyString", func(t *testing.T) { |
nothing calls this directly
no test coverage detected