audit_log_test.go 645 B

12345678910111213141516171819202122232425262728
  1. package upcrmservice
  2. import (
  3. "testing"
  4. "github.com/smartystreets/goconvey/convey"
  5. )
  6. func TestUpcrmserviceAddAuditLog(t *testing.T) {
  7. convey.Convey("AddAuditLog", t, func(ctx convey.C) {
  8. var (
  9. bizID = int(0)
  10. tp = int8(0)
  11. action = ""
  12. uid = int64(0)
  13. uname = ""
  14. oids = []int64{}
  15. index = []interface{}{}
  16. content map[string]interface{}
  17. )
  18. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  19. err := s.AddAuditLog(bizID, tp, action, uid, uname, oids, index, content)
  20. ctx.Convey("Then err should be nil.", func(ctx convey.C) {
  21. ctx.So(err, convey.ShouldBeNil)
  22. })
  23. })
  24. })
  25. }