MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / encode_then_decode

Method encode_then_decode

test/test_bson.py:173–174  ·  view source on GitHub ↗
(doc)

Source from the content-addressed store, hash-verified

171 helper({"$field": Code("return function(){ return x; }", scope={"x": False})})
172
173 def encode_then_decode(doc):
174 return doc_class(doc) == decoder(encode(doc), CodecOptions(document_class=doc_class))
175
176 qcheck.check_unittest(self, encode_then_decode, qcheck.gen_mongo_dict(3))
177

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.90
CodecOptionsClass · 0.90

Tested by

no test coverage detected