summaryrefslogtreecommitdiff
path: root/vendor/github.com/Wessie/appdirs/appdirs_test.go
blob: e05c37314e1a75f46de1d3fe1f9c2ab0ad1795b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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)
	}
}