Using Testify to mock GORM Delete operation Golang (Postgresql)
I am using Testify to mock a Postgres database for testing.
I cannot create a unit test in Testify if the GORM operation is chained. In this example, I am using “Where” and “Delete” operation.