summaryrefslogtreecommitdiff
path: root/vendor/github.com/Wessie/appdirs/appdirs_test.go
diff options
context:
space:
mode:
authorFelix Hanley <felix@userspace.com.au>2017-03-19 15:19:42 +0000
committerFelix Hanley <felix@userspace.com.au>2017-03-19 15:19:42 +0000
commit8a541d499b6f117cd3a81e475ee779ba60fc0637 (patch)
tree7b3b5326235725ab93056b5ff4637d987fb0a7b6 /vendor/github.com/Wessie/appdirs/appdirs_test.go
parentfe847b2d01060044274d20d2c35ae01a684d4ee3 (diff)
downloadcrjw-maps-master.tar.gz
crjw-maps-master.tar.bz2
use golang dep tool for depsHEADmaster
Diffstat (limited to 'vendor/github.com/Wessie/appdirs/appdirs_test.go')
-rw-r--r--vendor/github.com/Wessie/appdirs/appdirs_test.go65
1 files changed, 65 insertions, 0 deletions
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)
+ }
+}