# Functions
GetCollection returns a collection from the MongoDB database.
GetMockCollection is a helper function for tests.
GetMockDatabase is a helper function for tests.
InitializeMongoDB initializes the MongoDB client connection.
# Variables
DefaultMongoConnectFunc is the default function for connecting to MongoDB.
GetCollectionFunc is a package-level variable holding the function to get a collection.
MongoClient holds the actual MongoDB client or a mock for testing.
# Structs
MockCollection is a mock type for the mongo.Collection used for testing.
MockDatabase is a mock type for the mongo.Database used for testing.
MongoClientWrapper wraps the actual MongoDB client to conform to our interface.
# Interfaces
CollectionInterface defines the methods to be mocked for MongoDB collection.
MongoClientInterface defines the interface for MongoDB client methods used in our code.
# Type aliases
CollectionGetterFunc is a function type for getting a collection.
MongoConnectFuncType defines the function type for connecting to MongoDB.