()
| 57 | } |
| 58 | |
| 59 | func (s *ClientSuite) Test_ensureClientHasCorrectJsonRepresentation() { |
| 60 | actual := &model.Client{ID: 1, UserID: 2, Token: "Casdasfgeeg", Name: "myclient"} |
| 61 | test.JSONEquals(s.T(), actual, `{"id":1,"token":"Casdasfgeeg","name":"myclient","lastUsed":null}`) |
| 62 | } |
| 63 | |
| 64 | func (s *ClientSuite) Test_CreateClient_mapAllParameters() { |
| 65 | s.db.User(5) |
nothing calls this directly
no test coverage detected