member_log_test.go 682 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "go-common/app/service/main/member/model"
  6. "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestDaoAddMoralLogReport(t *testing.T) {
  9. var (
  10. c = context.Background()
  11. ul = &model.UserLog{
  12. Mid: 4780461,
  13. }
  14. )
  15. convey.Convey("AddMoralLogReport", t, func(ctx convey.C) {
  16. d.AddMoralLogReport(c, ul)
  17. t.Logf("log:%+v", ul)
  18. })
  19. }
  20. func TestDaoaddLogReport(t *testing.T) {
  21. var (
  22. c = context.Background()
  23. business = int(0)
  24. action = ""
  25. ul = &model.UserLog{
  26. Mid: 4780461,
  27. }
  28. )
  29. convey.Convey("addLogReport", t, func(ctx convey.C) {
  30. d.addLogReport(c, business, action, ul)
  31. t.Logf("log:%+v", ul)
  32. })
  33. }