You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
368 B
Go
23 lines
368 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestCrawlYts(t *testing.T) {
|
|
torrents := CrawlYts()
|
|
if len(torrents) < 1 {
|
|
t.Error("no torrents crawled from yts")
|
|
}
|
|
}
|
|
|
|
func TestCrawlEztv(t *testing.T) {
|
|
t.Log("t.log")
|
|
torrents := CrawlEztv()
|
|
if len(torrents) < 1 {
|
|
t.Error("no torrents crawled from eztv.io")
|
|
}
|
|
t.Log(torrents[0].Name)
|
|
t.Log(torrents[1].Name)
|
|
}
|