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

mock 时,如何把官方 mtest 包的 mongo.Collection 给转变为 qmgo.Collection #328

Open
micln opened this issue Nov 19, 2024 · 0 comments

Comments

@micln
Copy link

micln commented Nov 19, 2024

参照 https://pkg.go.dev/go.mongodb.org/[email protected]/mongo/integration/mtest#T

mtest 会返回一个 Coll,并且可以对这个 Coll 的结果进行 mock

我代码里用的是 qmgo.Collection,怎么能构造一个 qmgo.Collection 并把 mt.Coll 给传进去?

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

1 participant