mirror of
https://github.com/simon-ding/polaris.git
synced 2026-04-22 03:37:30 +08:00
21 lines
325 B
Go
21 lines
325 B
Go
package qbittorrent
|
|
|
|
import (
|
|
"polaris/log"
|
|
"testing"
|
|
)
|
|
|
|
func Test1(t *testing.T) {
|
|
c, err := NewClient("http://10.0.0.8:8081/", "", "")
|
|
if err != nil {
|
|
log.Errorf("new client error: %v", err)
|
|
t.Fail()
|
|
}
|
|
all, err := c.GetAll()
|
|
for _, t := range all {
|
|
name, _ := t.Name()
|
|
log.Infof("torrent: %+v", name)
|
|
}
|
|
|
|
}
|