Skip to content

Commit

Permalink
Fix gofmt -s notice on Windows paths test file
Browse files Browse the repository at this point in the history
  • Loading branch information
adrg committed Oct 27, 2021
1 parent fbca2b9 commit 6d13e5a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions paths_windows_test.go
Expand Up @@ -22,50 +22,50 @@ func TestDefaultBaseDirs(t *testing.T) {
programData := filepath.Join(systemDrive, "ProgramData")

envSamples := []*envSample{
&envSample{
{
name: "XDG_DATA_HOME",
expected: localAppData,
actual: &xdg.DataHome,
},
&envSample{
{
name: "XDG_DATA_DIRS",
expected: []string{roamingAppData, programData},
actual: &xdg.DataDirs,
},
&envSample{
{
name: "XDG_CONFIG_HOME",
expected: localAppData,
actual: &xdg.ConfigHome,
},
&envSample{
{
name: "XDG_CONFIG_DIRS",
expected: []string{programData, roamingAppData},
actual: &xdg.ConfigDirs,
},
&envSample{
{
name: "XDG_STATE_HOME",
expected: localAppData,
actual: &xdg.StateHome,
},
&envSample{
{
name: "XDG_CACHE_HOME",
expected: filepath.Join(localAppData, "cache"),
actual: &xdg.CacheHome,
},
&envSample{
{
name: "XDG_RUNTIME_DIR",
expected: localAppData,
actual: &xdg.RuntimeDir,
},
&envSample{
{
name: "XDG_APPLICATION_DIRS",
expected: []string{
filepath.Join(roamingAppData, "Microsoft", "Windows", "Start Menu", "Programs"),
filepath.Join(programData, "Microsoft", "Windows", "Start Menu", "Programs"),
},
actual: &xdg.ApplicationDirs,
},
&envSample{
{
name: "XDG_FONT_DIRS",
expected: []string{
filepath.Join(systemRoot, "Fonts"),
Expand Down

0 comments on commit 6d13e5a

Please sign in to comment.