pashagolub / pgxmock

pgx mock driver for golang to test database interactions
Other
386 stars 49 forks source link

Extend support for batch operation mocking / assertions #151

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR extends the support for batch operation mocking and assertions in the pgxmock package. It addresses issue #149 by modifying the SendBatch method, adding a new type ExpectedBatch, and introducing a new method ExpectBatch to the pgxmock type. Additionally, the ExpectationsWereMet method is updated to check if all expected batch operations were met.

Summary of Changes

Fixes #149.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/batch-operation-mocking

To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.