Describe the feature
We need to add more unit tests for new features
Motivation
We have added some new features in recent versions, but currently there is not enough test coverage, we need some tests to clarify the behavior of these features in the driver, and to avoid being broken.
The following tasks are open (welcome to add more) - [x] Test for ErrDuplicatedKey @saeidee - [x] Test for TableType @saeidee - [x] Test for ErrForeignKeyViolated (Incomplete, need to add driver implementation) @saeidee
If anyone is interested in the above tasks, please leave a message in the comments
Related Issues
Comment From: saeidee
I will be able to add the tests on drivers for https://github.com/go-gorm/gorm/pull/6004 and https://github.com/go-gorm/gorm/pull/6329 as well as the implementation for https://github.com/go-gorm/gorm/pull/6329.
Comment From: a631807682
@saeidee thank you
Comment From: saeidee
@a631807682 shall we write the tests in each driver repository or gorm repository? Also, you can assign the TableType test to me as well.
Comment From: a631807682
shall we write the tests in each driver repository or gorm repository? Also, you can assign the TableType test to me as well.
You can test in gorm to avoid a lot of repetitive testing code
Comment From: saeidee
@a631807682 shall we close this issue?