Skip to content
  • Nick Mathewson's avatar
    Add unit tests for the NO_METHOD compressor · 3836d948
    Nick Mathewson authored
    These required some special-casing, since some of the assumption
    about real compression algorithms don't actually hold for the
    identity transform.  Specifically, we had assumed:
    
      - compression functions typically change the lengths of their
        inputs.
      - decompression functions can detect truncated inputs
      - compression functions have detectable headers
    
    None of those is true for the identity transformation.
    3836d948