infoc_test.go 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. package region
  2. import (
  3. "testing"
  4. "time"
  5. "go-common/app/interface/main/app-feed/model/tag"
  6. )
  7. func TestService_TagsInfoc(t *testing.T) {
  8. type args struct {
  9. mid int64
  10. plat int8
  11. build int
  12. buvid string
  13. disid string
  14. ip string
  15. api string
  16. tags []*tag.Tag
  17. now time.Time
  18. }
  19. tests := []struct {
  20. name string
  21. s *Service
  22. args args
  23. }{
  24. // TODO: Add test cases.
  25. }
  26. for _, tt := range tests {
  27. t.Run(tt.name, func(t *testing.T) {
  28. tt.s.TagsInfoc(tt.args.mid, tt.args.plat, tt.args.build, tt.args.buvid, tt.args.disid, tt.args.ip, tt.args.api, tt.args.tags, tt.args.now)
  29. })
  30. }
  31. }
  32. func TestService_ChangeTagsInfoc(t *testing.T) {
  33. type args struct {
  34. mid int64
  35. plat int8
  36. build int
  37. buvid string
  38. disid string
  39. ip string
  40. api string
  41. tags []*tag.Tag
  42. now time.Time
  43. }
  44. tests := []struct {
  45. name string
  46. s *Service
  47. args args
  48. }{
  49. // TODO: Add test cases.
  50. }
  51. for _, tt := range tests {
  52. t.Run(tt.name, func(t *testing.T) {
  53. tt.s.ChangeTagsInfoc(tt.args.mid, tt.args.plat, tt.args.build, tt.args.buvid, tt.args.disid, tt.args.ip, tt.args.api, tt.args.tags, tt.args.now)
  54. })
  55. }
  56. }
  57. func TestService_AddTagInfoc(t *testing.T) {
  58. type args struct {
  59. mid int64
  60. plat int8
  61. build int
  62. buvid string
  63. disid string
  64. ip string
  65. api string
  66. rid int
  67. tid int64
  68. now time.Time
  69. }
  70. tests := []struct {
  71. name string
  72. s *Service
  73. args args
  74. }{
  75. // TODO: Add test cases.
  76. }
  77. for _, tt := range tests {
  78. t.Run(tt.name, func(t *testing.T) {
  79. tt.s.AddTagInfoc(tt.args.mid, tt.args.plat, tt.args.build, tt.args.buvid, tt.args.disid, tt.args.ip, tt.args.api, tt.args.rid, tt.args.tid, tt.args.now)
  80. })
  81. }
  82. }
  83. func TestService_CancelTagInfoc(t *testing.T) {
  84. type args struct {
  85. mid int64
  86. plat int8
  87. build int
  88. buvid string
  89. disid string
  90. ip string
  91. api string
  92. rid int
  93. tid int64
  94. now time.Time
  95. }
  96. tests := []struct {
  97. name string
  98. s *Service
  99. args args
  100. }{
  101. // TODO: Add test cases.
  102. }
  103. for _, tt := range tests {
  104. t.Run(tt.name, func(t *testing.T) {
  105. tt.s.CancelTagInfoc(tt.args.mid, tt.args.plat, tt.args.build, tt.args.buvid, tt.args.disid, tt.args.ip, tt.args.api, tt.args.rid, tt.args.tid, tt.args.now)
  106. })
  107. }
  108. }
  109. func TestService_infocproc(t *testing.T) {
  110. tests := []struct {
  111. name string
  112. s *Service
  113. }{
  114. // TODO: Add test cases.
  115. }
  116. for _, tt := range tests {
  117. t.Run(tt.name, func(t *testing.T) {
  118. tt.s.infocproc()
  119. })
  120. }
  121. }