GORM Playground can be used to play GORM and reports issues, if you encounter a bug in GORM, please report it at https://github.com/go-gorm/gorm/issues with the Playground Pull Request's link
# Run tests with specfied database
GORM_DIALECT=mysql go test
6. Create Playground Pull Request and Create a GORM issue with the link
We have prepared some structs with relationships in https://github.com/go-gorm/playground/blob/master/models.go that you can use for your tests