- All Known Implementing Classes:
- Compressor, Decompressor, Huff, JSONzip
public interface PostMortem
The PostMortem interface allows for testing the internal state of JSONzip
processors. Testing that JSONzip can compress an object and reproduce a
corresponding object is not sufficient. Complete testing requires that the
same internal data structures were constructed on both ends. If those
structures are not equivalent, then it is likely that the implementations
are not correct, even if convention tests are passed.
PostMortem allows for testing of deep structures without breaking
encapsulation.