[Test] using output_test_stream to compare in the middle of a file

Hi, We need to test a function which reads a "record" from a binary file. We want to compare the buffer with the "record" in input file.We know the offset of the record in input file. How can we compare the output_test_stream with a certain offset (and length) of the file? or is there any alternative for this? Thanks, Lloyd

Lloyd
Hi, We need to test a function which reads a "record" from a binary file. We want to compare the buffer with the "record" in input file.We know the offset of the record in input file. How can we compare the output_test_stream with a certain offset (and length) of the file? or is there any alternative for this?
I do not think this class can help you with this. In general this class is good for rather limited use case and should probably be impoved to something similar to diff command. Regards, Gennadiy
participants (2)
-
Gennadiy Rozental
-
Lloyd