Searched refs:count_instr_recursively (Results 1 – 1 of 1) sorted by relevance
/third_party/python/Lib/test/ |
D | test_peepholer.py | 7 def count_instr_recursively(f, opname): function 16 count += count_instr_recursively(c, opname) 367 self.assertEqual(count_instr_recursively(f, 'JUMP_IF_FALSE_OR_POP'), 2) 374 self.assertEqual(count_instr_recursively(f, 'JUMP_IF_TRUE_OR_POP'), 2) 444 self.assertEqual(count_instr_recursively(containtest, 'BUILD_LIST'), 0) 451 self.assertEqual(count_instr_recursively(forloop, 'BUILD_LIST'), 0) 486 self.assertEqual(count_instr_recursively(listcomp, 'FOR_ITER'), 1) 489 self.assertEqual(count_instr_recursively(setcomp, 'FOR_ITER'), 1) 492 self.assertEqual(count_instr_recursively(dictcomp, 'FOR_ITER'), 1) 495 self.assertEqual(count_instr_recursively(genexpr, 'FOR_ITER'), 1)
|