From 8a541d499b6f117cd3a81e475ee779ba60fc0637 Mon Sep 17 00:00:00 2001 From: Felix Hanley Date: Sun, 19 Mar 2017 22:19:42 +0700 Subject: use golang dep tool for deps --- vendor/github.com/Wessie/appdirs/.gitignore | 0 vendor/github.com/Wessie/appdirs/README.md | 3 ++ vendor/github.com/Wessie/appdirs/appdirs_test.go | 65 ++++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 vendor/github.com/Wessie/appdirs/.gitignore create mode 100644 vendor/github.com/Wessie/appdirs/README.md create mode 100644 vendor/github.com/Wessie/appdirs/appdirs_test.go (limited to 'vendor/github.com/Wessie/appdirs') diff --git a/vendor/github.com/Wessie/appdirs/.gitignore b/vendor/github.com/Wessie/appdirs/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/vendor/github.com/Wessie/appdirs/README.md b/vendor/github.com/Wessie/appdirs/README.md new file mode 100644 index 0000000..2207b6c --- /dev/null +++ b/vendor/github.com/Wessie/appdirs/README.md @@ -0,0 +1,3 @@ +This is a port of the excellent python module named the same, which can be found here [appdirs](https://github.com/ActiveState/appdirs). + +The README and documentation in the original should be a good starting point. Documentation is currently lacking on the port itself, but the API is very similar to the python version. diff --git a/vendor/github.com/Wessie/appdirs/appdirs_test.go b/vendor/github.com/Wessie/appdirs/appdirs_test.go new file mode 100644 index 0000000..e05c373 --- /dev/null +++ b/vendor/github.com/Wessie/appdirs/appdirs_test.go @@ -0,0 +1,65 @@ +package appdirs + +import ( + "testing" +) + +func TestUserData(t *testing.T) { + app := New("Testing", "Tester", "1.0.0") + + if r := app.UserData(); r == "" { + t.Error("Received empty string.") + } else { + t.Logf("UserData: %s", r) + } +} + +func TestSiteData(t *testing.T) { + app := New("Testing", "Tester", "1.0.0") + + if r := app.SiteData(); r == "" { + t.Error("Received empty string.") + } else { + t.Logf("SiteData: %s", r) + } +} + +func TestSiteConfig(t *testing.T) { + app := New("Testing", "Tester", "1.0.0") + + if r := app.SiteConfig(); r == "" { + t.Error("Received empty string.") + } else { + t.Logf("SiteConfig: %s", r) + } +} + +func TestUserCache(t *testing.T) { + app := New("Testing", "Tester", "1.0.0") + + if r := app.UserCache(); r == "" { + t.Error("Received empty string.") + } else { + t.Logf("UserCache: %s", r) + } +} + +func TestUserConfig(t *testing.T) { + app := New("Testing", "Tester", "1.0.0") + + if r := app.UserConfig(); r == "" { + t.Error("Received empty string.") + } else { + t.Logf("UserConfig: %s", r) + } +} + +func TestUserLog(t *testing.T) { + app := New("Testing", "Tester", "1.0.0") + + if r := app.UserLog(); r == "" { + t.Error("Received empty string.") + } else { + t.Logf("UserLog: %s", r) + } +} -- cgit v1.2.3