()
| 156 | } |
| 157 | |
| 158 | func (s *UserTestSuite) TestCreateUserUsernameAlreadyExist() { |
| 159 | s.Fixtures.NewUserParams.Username = "test-username-1" |
| 160 | |
| 161 | _, err := s.Store.CreateUser(context.Background(), s.Fixtures.NewUserParams) |
| 162 | |
| 163 | s.Require().NotNil(err) |
| 164 | s.Require().Equal(("error creating user: username already exists"), err.Error()) |
| 165 | } |
| 166 | |
| 167 | func (s *UserTestSuite) TestCreateUserEmailAlreadyExist() { |
| 168 | s.Fixtures.NewUserParams.Email = "test-1@example.com" |
nothing calls this directly
no test coverage detected