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

Method setUp

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

Source from the content-addressed store, hash-verified

423 dataset = "large_doc.json"
424
425 def setUp(self):
426 super().setUp()
427 n_docs = 10
428 self.data_size = len(encode(self.document)) * n_docs
429 self.documents = [self.document.copy() for _ in range(n_docs)]
430
431
432class TestLargeDocInsertOne(LargeDocInsertTest, unittest.TestCase):

Callers

nothing calls this directly

Calls 3

encodeFunction · 0.90
copyMethod · 0.80
setUpMethod · 0.45

Tested by

no test coverage detected