Skip to content

wire: Add tests for short reads.#3623

Merged
davecgh merged 1 commit intodecred:masterfrom
davecgh:wire_short_read_tests
Feb 26, 2026
Merged

wire: Add tests for short reads.#3623
davecgh merged 1 commit intodecred:masterfrom
davecgh:wire_short_read_tests

Conversation

@davecgh
Copy link
Copy Markdown
Member

@davecgh davecgh commented Feb 26, 2026

This adds some additional tests for short reads.

  • Adds cases from some missing paths in the tests for readElement
  • Adds another scenario when testing readElement that reader that only provides at most one byte per Read
  • Adds a new test name TestShortReads that exercise each of the individual readX funcs with the various supported readers as well as a couple of readers for the default path including a one byte reader

Together these tests help ensure all of the new short read paths are fully exercised.

@davecgh davecgh added this to the 2.2.0 milestone Feb 26, 2026
@davecgh davecgh force-pushed the wire_short_read_tests branch from 42331cd to 99c6e78 Compare February 26, 2026 04:09
@davecgh davecgh mentioned this pull request Feb 26, 2026
This adds some additional tests for short reads.

- Adds cases from some missing paths in the tests for readElement
- Adds another scenario when testing readElement that reader that only
  provides at most one byte per Read
- Adds a new test name TestShortReads that exercise each of the
  individual readX funcs with the various supported readers as well as a
  couple of readers for the default path including a one byte reader

Together these tests help ensure all of the new short read paths are
fully exercised.
@davecgh davecgh force-pushed the wire_short_read_tests branch from 99c6e78 to 90199bb Compare February 26, 2026 11:37
@davecgh davecgh merged commit 90199bb into decred:master Feb 26, 2026
33 checks passed
@davecgh davecgh deleted the wire_short_read_tests branch February 26, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants