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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      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!

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: