-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
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-2249 Create a testing story for application devs who use the Go Driver
- Backlog
-
GODRIVER-1241 Mocking library
- Development Complete