-
Hi, Just wondering if it's possible to provide an example of how to use the mocks to test an InsertOne and/or a Drop operation on a collection? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
SVilgelm
Feb 12, 2023
Replies: 2 comments 3 replies
-
Hi, have you read this discussion #30 ? It has an example of testing the Find function. The insert and delete are will be same. I can provide a better example some time on this week |
Beta Was this translation helpful? Give feedback.
1 reply
-
I added some additional examples here https://github.com/sv-tools/mongoifc/blob/main/examples/simple/users_test.go |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
SVilgelm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I added some additional examples here https://github.com/sv-tools/mongoifc/blob/main/examples/simple/users_test.go