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

Method setUp

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

Source from the content-addressed store, hash-verified

228
229class BsonEncodingTest(MicroTest):
230 def setUp(self):
231 super().setUp()
232 # Location of test data.
233 self.document = json_util.loads(self.file_data)
234 self.data_size = len(encode(self.document)) * NUM_DOCS
235
236 def do_task(self):
237 for _ in range(NUM_DOCS):

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.90
setUpMethod · 0.45

Tested by

no test coverage detected