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

Method test_iterate_literal_list

Lib/test/test_peepholer.py:645–650  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

643 self.check_lnotab(containtest)
644
645 def test_iterate_literal_list(self):
646 def forloop():
647 for x in [a, b]:
648 pass
649 self.assertEqual(count_instr_recursively(forloop, 'BUILD_LIST'), 0)
650 self.check_lnotab(forloop)
651
652 def test_condition_with_binop_with_bools(self):
653 def f():

Callers

nothing calls this directly

Calls 3

check_lnotabMethod · 0.95
count_instr_recursivelyFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected