go-mocket
go-mocket copied to clipboard
Examples for mocking database transactions using go-mocket
Hi, I am using gorm as ORM in my golang project. I was initially using sqlmock for unit testing now I have switched to go-mocket since it is recommended by the gorm-community and I faced issues while mocking postgres INSERT queries. But now the problem is that I am unable to mock my db transactions. Can someone guide me with this
Is it even possible with available mock functions?
update: mocket is not catching the transaction commit