Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-834

Please convert Client, Database, Collection and others structs to interfaces to allow develop Mocks

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 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!

            Assignee:
            Unassigned Unassigned
            Reporter:
            amsokol Aleksandr Sokolovskii
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: