X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/7cc0014244124aea59672904de65a979a8e5fb2c..3aa065806f87d0876fbd7b05e5ded4aad380cc73:/datadir_test.go?ds=inline diff --git a/datadir_test.go b/datadir_test.go index fa895b7..b5adeb0 100644 --- a/datadir_test.go +++ b/datadir_test.go @@ -18,28 +18,28 @@ func TestDataDirFollowsTheOrder(t *testing.T) { want string }{ { - name: "ONECHAT_DIR first", + name: "uses ONECHAT_DIR before other paths", dir: filepath.Join(root, "a"), xdg: filepath.Join(root, "xdg"), home: root, want: filepath.Join(root, "a"), }, { - name: "absolute XDG_DATA_HOME", + name: "uses absolute XDG_DATA_HOME without ONECHAT_DIR", dir: "", xdg: filepath.Join(root, "xdg"), home: root, want: filepath.Join(root, "xdg", "onechat"), }, { - name: "relative XDG_DATA_HOME ignored", + name: "ignores relative XDG_DATA_HOME", dir: "", xdg: "xdg", home: root, want: filepath.Join(root, ".local", "share", "onechat"), }, { - name: "home directory last", + name: "falls back to the home data directory", dir: "", xdg: "", home: root,