bag-reader-java icon indicating copy to clipboard operation
bag-reader-java copied to clipboard

Add unit tests

Open pjreed opened this issue 9 years ago • 2 comments

Given how delicate reading in bag files is, it'd be nice to have some unit tests. A few things that should probably be tested:

  • Reading in all of a bag's headers
  • Uncompressing a compressed data chunk
  • Deserializing each of the primitive types
  • Deserializing a complex message type

pjreed avatar May 03 '16 21:05 pjreed

Some work was done on this in 1.9.0. The current set of unit tests now read in a set of sample bags that test deserializing both scalars and arrays of all of the primitive types. It'd be good to add tests for compressed data, too.

pjreed avatar Sep 15 '17 15:09 pjreed

I added in a PointCloud2 bag in #29 that is LZ4-compressed and also demonstrates how to read in arrays of complex message types.

pjreed avatar Jan 26 '18 22:01 pjreed