passed_test.go 380 B

12345678910111213141516171819
  1. package ugc
  2. import (
  3. "encoding/json"
  4. "fmt"
  5. "testing"
  6. . "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestDao_PassedArcs(t *testing.T) {
  9. Convey("TestDao_PassedArcs", t, WithDao(func(d *Dao) {
  10. res, err := d.PassedArcs(ctx, []int64{76, 75})
  11. So(err, ShouldBeNil)
  12. So(len(res), ShouldBeGreaterThan, 0)
  13. data, _ := json.Marshal(res)
  14. fmt.Println(string(data))
  15. }))
  16. }