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

Method test_repeat_function_zero_reps

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

Source from the content-addressed store, hash-verified

211 # self.assertEqual(delta_times, DEFAULT_REPEAT * [float(DEFAULT_NUMBER)])
212
213 def test_repeat_function_zero_reps(self):
214 delta_times = timeit.repeat(self.fake_stmt, self.fake_setup, repeat=0,
215 timer=FakeTimer())
216 self.assertEqual(delta_times, [])
217
218 def test_repeat_function_zero_iters(self):
219 delta_times = timeit.repeat(self.fake_stmt, self.fake_setup, number=0,

Callers

nothing calls this directly

Calls 3

FakeTimerClass · 0.85
repeatMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected