Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples for mocking database transactions using go-mocket #17

Open
humblefool007 opened this issue Apr 15, 2019 · 1 comment
Open

Examples for mocking database transactions using go-mocket #17

humblefool007 opened this issue Apr 15, 2019 · 1 comment

Comments

@humblefool007
Copy link

humblefool007 commented Apr 15, 2019

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

@humblefool007 humblefool007 changed the title Examples for mocking database transactions in go-mocket Examples for mocking database transactions using go-mocket Apr 15, 2019
@pavansokkenagaraj
Copy link

pavansokkenagaraj commented Jun 10, 2019

Is it even possible with available mock functions?

update: mocket is not catching the transaction commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants