def test_cython_smallint_coder(self): data = [32767, -32768, 0] python_field_coders = [ coder_impl.SmallIntCoderImpl() for _ in range(len(data)) ] cython_field_coders = [ fast_coder_impl.SmallIntCoderImpl() for _ in range(len(data)) ] self.check_cython_coder(python_field_coders, cython_field_coders, [data])
def get_impl(self): return coder_impl.SmallIntCoderImpl()
def _create_impl(self): return coder_impl.SmallIntCoderImpl()