I’d like to unit test my custom BSON marshal/unmarshal code but I can’t seem to find a way to register encoders for my custom structs without using options.DatabaseOptions.Registry
and mongo.Client.Database("name", databaseOptions)
.
Is there a way to test it without a full blown integration test?