ticket_test.go 467 B

1234567891011121314151617181920212223
  1. package dao
  2. import (
  3. "testing"
  4. . "github.com/smartystreets/goconvey/convey"
  5. )
  6. func TestTicketsByID(t *testing.T) {
  7. Convey("TestTicketsByID", t, func() {
  8. tickets, err := d.TicketsByID(ctx, []int64{101, 102})
  9. So(err, ShouldBeNil)
  10. So(tickets, ShouldNotBeNil)
  11. })
  12. }
  13. func TestTicketSend(t *testing.T) {
  14. Convey("TestTicketSend", t, func() {
  15. sends, err := d.TicketSend(ctx, []int64{402, 412}, "send")
  16. So(err, ShouldBeNil)
  17. So(sends, ShouldNotBeNil)
  18. })
  19. }