(t *testing.T)
| 57 | } |
| 58 | |
| 59 | func TestCustomDirs(t *testing.T) { |
| 60 | testCases := []envTestCase{ |
| 61 | { |
| 62 | envKey: "XDG_CONFIG_HOME", |
| 63 | envVal: "~/custom/config", |
| 64 | got: &ConfigHome, |
| 65 | expected: "~/custom/config", |
| 66 | }, |
| 67 | { |
| 68 | envKey: "XDG_DATA_HOME", |
| 69 | envVal: "~/custom/data", |
| 70 | got: &DataHome, |
| 71 | expected: "~/custom/data", |
| 72 | }, |
| 73 | { |
| 74 | envKey: "XDG_CACHE_HOME", |
| 75 | envVal: "~/custom/cache", |
| 76 | got: &CacheHome, |
| 77 | expected: "~/custom/cache", |
| 78 | }, |
| 79 | } |
| 80 | |
| 81 | testCustomDirs(t, testCases) |
| 82 | } |
nothing calls this directly
no test coverage detected