associate_test.go 418 B

1234567891011121314151617181920
  1. package dao
  2. import (
  3. "context"
  4. "fmt"
  5. "testing"
  6. . "github.com/smartystreets/goconvey/convey"
  7. )
  8. // go test -test.v -test.run TestDaoNotGrantActOrders
  9. func TestDaoNotGrantActOrders(t *testing.T) {
  10. Convey("TestDaoNotGrantActOrders salary coupon", t, func() {
  11. res, err := d.NotGrantActOrders(context.Background(), "ele", 100)
  12. for _, v := range res {
  13. fmt.Println("res:", v)
  14. }
  15. So(err, ShouldBeNil)
  16. })
  17. }