switch_test.go 351 B

12345678910111213141516171819
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_switch(t *testing.T) {
  8. initd()
  9. Convey("Parse Json To Struct", t, func() {
  10. target := int64(27515316)
  11. fs, err := d.GetFansBySwitch(context.TODO(), target)
  12. t.Logf("the result included(%v) err(%v)", fs, err)
  13. So(err, ShouldEqual, nil)
  14. })
  15. }