-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathxvideos_test.go
45 lines (38 loc) · 992 Bytes
/
xvideos_test.go
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
package xvideos
import "testing"
func TestGetTagsJp(t *testing.T) {
got, _ := getTags("http://jp.xvideos.com/video2601078/hot3x.net")
if got == nil {
t.Errorf("got %q expected not nil", got)
}
}
func TestGetTagsUs(t *testing.T) {
got, _ := getTags("http://www.xvideos.com/video2601078/hot3x.net")
if got == nil {
t.Errorf("got %q expected not nil", got)
}
}
func TestGetEmptyUrl(t *testing.T) {
got, _ := Get("")
if got != nil {
t.Errorf("got %q expected nil", got)
}
}
func TestGetInvalidateUrl(t *testing.T) {
got, _ := Get("http://hgehogejfak.com")
if got != nil {
t.Errorf("got %q expected nil", got)
}
}
func TestGetXvideosUs(t *testing.T) {
got, _ := Get("http://www.xvideos.com/best/")
if got == nil {
t.Errorf("got %q expected not nil", got)
}
}
func TestGetXvideosJp(t *testing.T) {
got, _ := Get("http://jp.xvideos.com/c/asian_woman-32/")
if got == nil {
t.Errorf("got %q expected not nil", got)
}
}