mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-06-08 05:58:29 -05:00
20 lines
351 B
Go
20 lines
351 B
Go
|
|
package dao
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"testing"
|
||
|
|
|
||
|
|
. "github.com/smartystreets/goconvey/convey"
|
||
|
|
)
|
||
|
|
|
||
|
|
func Test_switch(t *testing.T) {
|
||
|
|
initd()
|
||
|
|
Convey("Parse Json To Struct", t, func() {
|
||
|
|
target := int64(27515316)
|
||
|
|
fs, err := d.GetFansBySwitch(context.TODO(), target)
|
||
|
|
t.Logf("the result included(%v) err(%v)", fs, err)
|
||
|
|
|
||
|
|
So(err, ShouldEqual, nil)
|
||
|
|
})
|
||
|
|
}
|