()
| 87 | } |
| 88 | |
| 89 | func (s *UserSuite) Test_GetUserByID_InvalidID() { |
| 90 | s.db.User(2) |
| 91 | s.ctx.Params = gin.Params{{Key: "id", Value: "abc"}} |
| 92 | |
| 93 | s.a.GetUserByID(s.ctx) |
| 94 | |
| 95 | assert.Equal(s.T(), 400, s.recorder.Code) |
| 96 | } |
| 97 | |
| 98 | func (s *UserSuite) Test_GetUserByID_UnknownUser() { |
| 99 | s.db.User(2) |
nothing calls this directly
no test coverage detected