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

Method func

Lib/test/test_dis.py:1148–1152  ·  view source on GitHub ↗
(count)

Source from the content-addressed store, hash-verified

1146
1147 def test_big_linenos(self):
1148 def func(count):
1149 namespace = {}
1150 func = "def foo():\n " + "".join(["\n "] * count + ["spam\n"])
1151 exec(func, namespace)
1152 return namespace['foo']
1153
1154 # Test all small ranges
1155 for i in range(1, 300):

Callers 15

__call__Method · 0.45
__call__Method · 0.45
methodMethod · 0.45
test_range_dataMethod · 0.45
test_types_conservedMethod · 0.45
test_empty_dataMethod · 0.45
test_intsMethod · 0.45
test_floatsMethod · 0.45

Calls 2

execFunction · 0.50
joinMethod · 0.45

Tested by

no test coverage detected