-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
Dear All,
Please look at this cool library:
https://github.com/DATA-DOG/go-sqlmock
It is very very useful library to "mock" any SQL database for tests.
I am ready to develop the same library for MongoDB. But the problem is Client, Database, Collection and others are structs. Could you please refactor them to Go interfaces (like in"sql" Go build-in package). It allows me to "mock" them.
Thanks!
- related to
-
GODRIVER-1241 Mocking library
- Closed
-
GODRIVER-2249 Investigate alternative solutions for mocking main API types
- Scheduled