go-sqlmock
go-sqlmock copied to clipboard
How to print go-sqlmock expected query?
trafficstars
Question
It's not easy to debug sqlmock with gorm, it always complains about
call to Query 'xxx' with args xxxx was not expected; call to Rollback transaction was not expected
So, what is it expected, how to setup print it out?