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

Method setUp

test/performance/perf_test.py:400–403  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

398 dataset = "small_doc.json"
399
400 def setUp(self):
401 super().setUp()
402 self.data_size = len(encode(self.document)) * NUM_DOCS
403 self.documents = [self.document.copy() for _ in range(NUM_DOCS)]
404
405
406class SmallDocMixedTest(TestDocument):

Callers

nothing calls this directly

Calls 3

encodeFunction · 0.90
copyMethod · 0.80
setUpMethod · 0.45

Tested by

no test coverage detected