/mongo-go-driver-mock

Examples for the mongo-go-driver mock 'hidden' feature

Primary LanguageGo

mongo-go-driver-mock

This repository aim to give examples of the mocking feature of mongo-go-driver.

Tests Examples

  • InsertOne
  • InsertMany
  • DeleteOne
  • FindOne
  • Find
  • FindOneAndUpdate
  • Write Error (duplicate error)

The repository was originally made to serve as an example for my Medium article.