summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/icrowley/fake/internet_test.go
blob: 8536a13f341257f6d76ce04e9b55305620c465fc (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
package fake

import (
	"testing"
)

func TestInternet(t *testing.T) {
	for _, lang := range GetLangs() {
		SetLang(lang)

		v := UserName()
		if v == "" {
			t.Errorf("UserName failed with lang %s", lang)
		}

		v = TopLevelDomain()
		if v == "" {
			t.Errorf("TopLevelDomain failed with lang %s", lang)
		}

		v = DomainName()
		if v == "" {
			t.Errorf("DomainName failed with lang %s", lang)
		}

		v = EmailAddress()
		if v == "" {
			t.Errorf("EmailAddress failed with lang %s", lang)
		}

		v = EmailSubject()
		if v == "" {
			t.Errorf("EmailSubject failed with lang %s", lang)
		}

		v = EmailBody()
		if v == "" {
			t.Errorf("EmailBody failed with lang %s", lang)
		}

		v = DomainZone()
		if v == "" {
			t.Errorf("DomainZone failed with lang %s", lang)
		}

		v = IPv4()
		if v == "" {
			t.Errorf("IPv4 failed with lang %s", lang)
		}

		v = UserAgent()
		if v == "" {
			t.Errorf("UserAgent failed with lang %s", lang)
		}

		v = IPv6()
		if v == "" {
			t.Errorf("IPv6 failed with lang %s", lang)
		}
	}
}