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

Method assertInstructionsEqual

Lib/test/test_dis.py:1984–1987  ·  view source on GitHub ↗
(self, instrs_1, instrs_2, /)

Source from the content-addressed store, hash-verified

1982class InstructionTestCase(BytecodeTestCase):
1983
1984 def assertInstructionsEqual(self, instrs_1, instrs_2, /):
1985 instrs_1 = [instr_1._replace(positions=None, cache_info=None) for instr_1 in instrs_1]
1986 instrs_2 = [instr_2._replace(positions=None, cache_info=None) for instr_2 in instrs_2]
1987 self.assertEqual(instrs_1, instrs_2)
1988
1989class InstructionTests(InstructionTestCase):
1990

Callers 8

test_outerMethod · 0.80
test_nestedMethod · 0.80
test_doubly_nestedMethod · 0.80
test_jumpyMethod · 0.80
test_iterationMethod · 0.80

Calls 1

assertEqualMethod · 0.45

Tested by

no test coverage detected