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

Method setUp

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

Source from the content-addressed store, hash-verified

240
241class BsonDecodingTest(MicroTest):
242 def setUp(self):
243 super().setUp()
244 self.document = encode(json_util.loads(self.file_data))
245 self.data_size = len(self.document) * NUM_DOCS
246
247 def do_task(self):
248 for _ in range(NUM_DOCS):

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.90
setUpMethod · 0.45

Tested by

no test coverage detected