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

Method check

Lib/test/test_peepholer.py:2425–2429  ·  view source on GitHub ↗
(self, insts, expected_insts, consts=None)

Source from the content-addressed store, hash-verified

2423 ], consts
2424
2425 def check(self, insts, expected_insts, consts=None):
2426 insts_bb, insts_consts = self.make_bb(insts)
2427 expected_insts_bb, exp_consts = self.make_bb(expected_insts)
2428 self.cfg_optimization_test(insts_bb, expected_insts_bb,
2429 consts=insts_consts, expected_consts=exp_consts)
2430
2431 def test_optimized(self):
2432 insts = [

Callers 12

test_optimizedMethod · 0.95
test_check_exc_matchMethod · 0.95
test_load_attrMethod · 0.95
test_super_attrMethod · 0.95
test_format_simpleMethod · 0.95
test_push_exc_infoMethod · 0.95
test_load_specialMethod · 0.95

Calls 2

make_bbMethod · 0.95
cfg_optimization_testMethod · 0.80

Tested by

no test coverage detected