ups_test.go 515 B

1234567891011121314151617181920
  1. package service
  2. import (
  3. . "github.com/smartystreets/goconvey/convey"
  4. "go-common/app/job/main/videoup-report/model/manager"
  5. "testing"
  6. )
  7. func TestHdlManagerUpsBinlog(t *testing.T) {
  8. Convey("hdlManagerUpsBinlog", t, func() {
  9. str := "{\"ctime\":\"2018-10-31 15:29:18\",\"id\":502,\"mid\":27515256,\"mtime\":\"2018-10-31 15:29:18\",\"note\":\"1111\",\"type\":18,\"uid\":277}"
  10. bs := []byte(str)
  11. m := &manager.BinMsg{
  12. Action: "insert",
  13. Table: "ups",
  14. New: bs,
  15. }
  16. s.hdlManagerUpsBinlog(m)
  17. })
  18. }