MCPcopy Index your code
hub / github.com/python/cpython / test_autorange

Method test_autorange

Lib/test/test_timeit.py:372–375  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

370 return t.autorange(callback, target_time=target_time)
371
372 def test_autorange(self):
373 num_loops, time_taken = self.autorange()
374 self.assertEqual(num_loops, 500)
375 self.assertEqual(time_taken, 500/1024)
376
377 def test_autorange_second(self):
378 num_loops, time_taken = self.autorange(seconds_per_increment=1.0)

Callers

nothing calls this directly

Calls 2

autorangeMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected