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

Method testfunc

Lib/test/test_capi/test_opt.py:552–558  ·  view source on GitHub ↗
(loops)

Source from the content-addressed store, hash-verified

550
551 def test_int_type_propagation(self):
552 def testfunc(loops):
553 num = 0
554 for i in range(loops):
555 x = num + num
556 a = x + 1
557 num += 1
558 return a
559
560 res, ex = self._run_with_optimizer(testfunc, TIER2_THRESHOLD)
561 self.assertIsNotNone(ex)

Callers

nothing calls this directly

Calls 15

doubleFunction · 0.85
setFunction · 0.85
global_identityFunction · 0.85
strFunction · 0.85
absFunction · 0.85
listClass · 0.85
CustomAdderClass · 0.85
genFunction · 0.70
CClass · 0.70
fooClass · 0.70
AClass · 0.70
dummyFunction · 0.50

Tested by

no test coverage detected