pitrou commented on PR #15241:
URL: https://github.com/apache/arrow/pull/15241#issuecomment-1377627179

   > Sure, it's easy to write that in my personal develop enviroment. But I 
cannot submit these "mock" code to the codebase, which make writing unit test a 
bit more trickey.
   
   You can write the code that mutates the encoder output directly in the unit 
test. Schematically:
   ```c++
   std::vector<uint8_t> encoded = ...;
   for (auto i = encoded.length() - 33; i < encoded.length() - 2; ++i) {
     encoded[i] = 0xFF;
   }
   ```
   
   > By the way, do you think using Hex to represent binary is ok?
   
   That works, yes.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to