Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Will Not Implement
Created by Guest
Created on Feb 24, 2023

Make the Go driver interface based so that it can be easily mocked for unitTests.

Provide interfaces for driver classes that can be used to mock the database for unit tests. Along the lines of what AWS does for its services: https://aws.amazon.com/blogs/developer/mocking-out-then-aws-sdk-for-go-for-unit-testing/
  • ADMIN RESPONSE
    Oct 18, 2025
    We're focusing on an effort to provide a better way to perform mock unit tests with the Go Driver. This effort is tracked here ( https://jira.mongodb.org/browse/GODRIVER-2249 ).