MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_repeat_function_zero_reps

Method test_repeat_function_zero_reps

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

Source from the content-addressed store, hash-verified

210 # self.assertEqual(delta_times, DEFAULT_REPEAT * [float(DEFAULT_NUMBER)])
211
212 def test_repeat_function_zero_reps(self):
213 delta_times = timeit.repeat(self.fake_stmt, self.fake_setup, repeat=0,
214 timer=FakeTimer())
215 self.assertEqual(delta_times, [])
216
217 def test_repeat_function_zero_iters(self):
218 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