()
| 24 | } |
| 25 | |
| 26 | func (s *UtilSuite) Test_getID() { |
| 27 | s.expectUserIDWith(&model.User{ID: 2}, 0, 2) |
| 28 | s.expectUserIDWith(nil, 5, 5) |
| 29 | assert.Panics(s.T(), func() { |
| 30 | s.expectUserIDWith(nil, 0, 0) |
| 31 | }) |
| 32 | s.expectTryUserIDWith(nil, 0, nil) |
| 33 | } |
| 34 | |
| 35 | func (s *UtilSuite) Test_getToken() { |
| 36 | ctx, _ := gin.CreateTestContext(httptest.NewRecorder()) |
nothing calls this directly
no test coverage detected