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

Method iter_codes

Lib/test/test_compileall.py:1033–1037  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1031 return '\n'.join(lines)
1032
1033 def iter_codes(self):
1034 for docstring in (False, True):
1035 for assertion in (False, True):
1036 code = self.create_code(docstring=docstring, assertion=assertion)
1037 yield (code, docstring, assertion)
1038
1039 def test_disabled(self):
1040 # Deduplication disabled, no hardlinks

Callers 2

test_disabledMethod · 0.95
test_hardlinkMethod · 0.95

Calls 1

create_codeMethod · 0.95

Tested by

no test coverage detected