go-sqlmock icon indicating copy to clipboard operation
go-sqlmock copied to clipboard

How to print go-sqlmock expected query?

Open tony9527167 opened this issue 3 years ago • 0 comments
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?

tony9527167 avatar Sep 14 '22 13:09 tony9527167