mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-05 16:15:43 +00:00
22 lines
447 B
Go
22 lines
447 B
Go
package bt
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestClient_AddTorrent(t *testing.T) {
|
|
/*client := NewClient()
|
|
metaInfo, err := metainfo.ParseFromFile("testdata/Game.of.Thrones.S08E05.720p.WEB.H264-MEMENTO.torrent")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
torrent := &
|
|
torrent.MetaInfo.Announce = "udp://tracker.opentrackr.org:1337/announce"
|
|
torrent.MetaInfo.AnnounceList = [][]string{}
|
|
err = torrent.Tracker()
|
|
if err != nil {
|
|
panic(err)
|
|
return
|
|
}*/
|
|
}
|