hbase_test.go 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package dao
  2. //import (
  3. // "context"
  4. // "testing"
  5. //
  6. // "github.com/smartystreets/goconvey/convey"
  7. //)
  8. //
  9. //func TestDaomoralRowKey(t *testing.T) {
  10. // var (
  11. // mid = int64(0)
  12. // ts = int64(0)
  13. // tid uint64
  14. // )
  15. // convey.Convey("moralRowKey", t, func(ctx convey.C) {
  16. // p1 := moralRowKey(mid, ts, tid)
  17. // ctx.Convey("p1 should not be nil", func(ctx convey.C) {
  18. // ctx.So(p1, convey.ShouldNotBeNil)
  19. // })
  20. // })
  21. //}
  22. //
  23. //func TestDaoAddMoralLog(t *testing.T) {
  24. // var (
  25. // c = context.Background()
  26. // mid = int64(0)
  27. // ts = int64(0)
  28. // s = []byte("abcd")
  29. // content = map[string][]byte{"ts": s}
  30. // )
  31. // convey.Convey("AddMoralLog", t, func(ctx convey.C) {
  32. // err := d.AddMoralLog(c, mid, ts, content)
  33. // ctx.Convey("Error should be nil", func(ctx convey.C) {
  34. // ctx.So(err, convey.ShouldBeNil)
  35. // })
  36. // })
  37. //}
  38. //
  39. //func TestDaogenID(t *testing.T) {
  40. // convey.Convey("genID", t, func(ctx convey.C) {
  41. // p1 := genID()
  42. // ctx.Convey("p1 should not be nil", func(ctx convey.C) {
  43. // ctx.So(p1, convey.ShouldNotBeNil)
  44. // })
  45. // })
  46. //}