httpclient_test.go 499 B

123456789101112131415161718192021222324252627
  1. package manager
  2. import (
  3. "context"
  4. . "github.com/smartystreets/goconvey/convey"
  5. "testing"
  6. )
  7. func Test_GetUIDByName(t *testing.T) {
  8. var (
  9. err error
  10. )
  11. Convey("GetUIDByName", t, WithDao(func(d *Dao) {
  12. _, err = d.GetUIDByName(context.Background(), "1111")
  13. So(err, ShouldBeNil)
  14. }))
  15. }
  16. func Test_GetNameByUID(t *testing.T) {
  17. var (
  18. err error
  19. )
  20. Convey("GetUIDByName", t, WithDao(func(d *Dao) {
  21. _, err = d.GetNameByUID(context.Background(), []int64{1, 2})
  22. So(err, ShouldBeNil)
  23. }))
  24. }