()
| 76 | } |
| 77 | |
| 78 | func (s *UserSuite) Test_GetUserByID() { |
| 79 | user := s.db.NewUser(2) |
| 80 | |
| 81 | s.ctx.Params = gin.Params{{Key: "id", Value: "2"}} |
| 82 | |
| 83 | s.a.GetUserByID(s.ctx) |
| 84 | |
| 85 | assert.Equal(s.T(), 200, s.recorder.Code) |
| 86 | test.BodyEquals(s.T(), externalOf(user), s.recorder) |
| 87 | } |
| 88 | |
| 89 | func (s *UserSuite) Test_GetUserByID_InvalidID() { |
| 90 | s.db.User(2) |
nothing calls this directly
no test coverage detected