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

Method test_in_literal_list

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

Source from the content-addressed store, hash-verified

637
638 @unittest.expectedFailure # TODO: RUSTPYTHON; no BUILD_LIST to BUILD_TUPLE optimization
639 def test_in_literal_list(self):
640 def containtest():
641 return x in [a, b]
642 self.assertEqual(count_instr_recursively(containtest, 'BUILD_LIST'), 0)
643 self.check_lnotab(containtest)
644
645 def test_iterate_literal_list(self):
646 def forloop():

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