feedback_test.go 520 B

12345678910111213141516171819
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. "go-common/app/interface/main/web/model"
  6. . "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestService_Feedback(t *testing.T) {
  9. Convey("test feedback Feedback", t, WithService(func(s *Service) {
  10. feedParams := &model.Feedback{Aid: 5464686, Mid: 27515256, TagID: 10101, Buvid: "", Browser: "",
  11. Version: "1.1", Content: &model.Content{Reason: ""}, Email: "", QQ: "", Other: ""}
  12. err := s.Feedback(context.Background(), feedParams)
  13. So(err, ShouldBeNil)
  14. }))
  15. }