archive_biz_test.go 457 B

1234567891011121314151617181920212223242526272829
  1. package archive
  2. import (
  3. "context"
  4. . "github.com/smartystreets/goconvey/convey"
  5. "testing"
  6. )
  7. func Test_POI(t *testing.T) {
  8. var (
  9. c = context.TODO()
  10. err error
  11. )
  12. Convey("Test_POI", t, WithDao(func(d *Dao) {
  13. _, err = d.POI(c, 23333)
  14. So(err, ShouldBeNil)
  15. }))
  16. }
  17. func Test_Vote(t *testing.T) {
  18. var (
  19. c = context.TODO()
  20. err error
  21. )
  22. Convey("Test_Vote", t, WithDao(func(d *Dao) {
  23. _, err = d.Vote(c, 23333)
  24. So(err, ShouldBeNil)
  25. }))
  26. }