()
| 165 | } |
| 166 | |
| 167 | func (s *UserTestSuite) TestCreateUserEmailAlreadyExist() { |
| 168 | s.Fixtures.NewUserParams.Email = "test-1@example.com" |
| 169 | |
| 170 | _, err := s.Store.CreateUser(context.Background(), s.Fixtures.NewUserParams) |
| 171 | |
| 172 | s.Require().NotNil(err) |
| 173 | s.Require().Equal(("error creating user: email already exists"), err.Error()) |
| 174 | } |
| 175 | |
| 176 | func (s *UserTestSuite) TestCreateUserDBCreateErr() { |
| 177 | s.Fixtures.SQLMock.ExpectBegin() |
nothing calls this directly
no test coverage detected