Lines Matching refs:count_opcode
60 def count_opcode(code, pickle): function
1826 self.assertEqual(count_opcode(pickle.PROTO, pickled), 0)
2044 num_appends = count_opcode(pickle.APPENDS, s)
2053 num_appends = count_opcode(pickle.APPENDS, s)
2067 num_setitems = count_opcode(pickle.SETITEMS, s)
2076 num_setitems = count_opcode(pickle.SETITEMS, s)
2089 num_additems = count_opcode(pickle.ADDITEMS, s)
2101 num_additems = count_opcode(pickle.ADDITEMS, s)
2389 count_opcode(pickle.FRAME, pickled))
2422 n_frames = count_opcode(pickle.FRAME, pickled)
2462 self.assertEqual(count_opcode(pickle.FRAME, frameless_pickle), 0)
2466 self.assertLess(count_opcode(pickle.FRAME, some_frames_pickle),
2467 count_opcode(pickle.FRAME, pickled))
2716 self.assertEqual(count_opcode(pickle.NEXT_BUFFER, data), 0)
2718 self.assertEqual(count_opcode(pickle.SHORT_BINBYTES, data),
2720 self.assertEqual(count_opcode(pickle.BYTEARRAY8, data),
2753 self.assertEqual(count_opcode(pickle.SHORT_BINBYTES, data), 0)
2754 self.assertEqual(count_opcode(pickle.BYTEARRAY8, data), 0)
2755 self.assertEqual(count_opcode(pickle.NEXT_BUFFER, data), 1)
2756 self.assertEqual(count_opcode(pickle.READONLY_BUFFER, data),