Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-372

CoderProperties: Test that the coder doesn't consume more bytes than it produces

Details

    Description

      Add a test to CoderProperties that does the following:

      1. Encode a value using the Coder in the nested context
      2. Decode the value using the Coder in the nested context
      3. Verify that the input stream wasn't requested to consume any extra bytes

      (This could possibly just be an enhancement to the existing round-trip encode/decode test)

      When this fails it can lead to very difficult to debug situations in a coder wrapped around the problematic coder. This would be an easy test that would clearly fail for the coder which was problematic.

      Attachments

        Issue Links

          Activity

            People

              csingh Chandni Singh
              bchambers Ben Chambers
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: