appeal_test.go 526 B

12345678910111213141516171819202122232425
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. // TestAddAppeal add appeal testing.
  8. func TestAddAppeal(t *testing.T) {
  9. Convey("TestAddAppeal", t, func() {
  10. err := s.AddAppeal(context.TODO(), 1, 111, 2222, "测试")
  11. So(err, ShouldBeNil)
  12. })
  13. }
  14. // TestAppealState appealstate testing.
  15. func TestAppealState(t *testing.T) {
  16. Convey("TestAddAppeal", t, func() {
  17. state, err := s.AppealState(context.TODO(), 1, 111)
  18. So(err, ShouldBeNil)
  19. So(state, ShouldEqual, true)
  20. })
  21. }