()
| 119 | } |
| 120 | |
| 121 | func (s *UserSuite) Test_DeleteUserByID_InvalidID() { |
| 122 | s.ctx.Params = gin.Params{{Key: "id", Value: "abc"}} |
| 123 | |
| 124 | s.a.DeleteUserByID(s.ctx) |
| 125 | |
| 126 | assert.Equal(s.T(), 400, s.recorder.Code) |
| 127 | } |
| 128 | |
| 129 | func (s *UserSuite) Test_DeleteUserByID_UnknownUser() { |
| 130 | s.db.User(2) |
nothing calls this directly
no test coverage detected