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

Method test_main_multiple_setups

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

Source from the content-addressed store, hash-verified

281 "35 loops, best of 5: 2 sec per loop\n")
282
283 def test_main_multiple_setups(self):
284 s = self.run_main(seconds_per_increment=2.0,
285 switches=['-n35', '-s', 'a = "CustomSetup"', '-s', 'print(a)'])
286 self.assertEqual(s, "CustomSetup\n" * DEFAULT_REPEAT +
287 "35 loops, best of 5: 2 sec per loop\n")
288
289 def test_main_fixed_reps(self):
290 s = self.run_main(seconds_per_increment=60.0, switches=['-r9'])

Callers

nothing calls this directly

Calls 2

run_mainMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected