Skip to content

Add dedicated test coverage for WriteRaw method#17

Merged
lukaskabrt merged 2 commits intofeature/block-writingfrom
copilot/sub-pr-16
Jan 11, 2026
Merged

Add dedicated test coverage for WriteRaw method#17
lukaskabrt merged 2 commits intofeature/block-writingfrom
copilot/sub-pr-16

Conversation

Copy link
Contributor

Copilot AI commented Jan 11, 2026

The WriteRaw method is a new public API but only had indirect test coverage through WritesLengthPrefixedBlock. This adds direct tests to verify correct behavior.

Changes

  • WriteRaw_WritesDataAndAdvancesPosition: Verifies WriteRaw correctly writes bytes to buffer and advances position
  • WriteRaw_WritesMultipleSequences: Verifies multiple sequential WriteRaw calls write data sequentially

Both tests follow existing patterns using SpanAssert for byte comparisons and position verification.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: lukaskabrt <2894161+lukaskabrt@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix nested class serialization in LengthPrefixedBlock Add dedicated test coverage for WriteRaw method Jan 11, 2026
Copilot AI requested a review from lukaskabrt January 11, 2026 10:40
@lukaskabrt lukaskabrt marked this pull request as ready for review January 11, 2026 10:52
@lukaskabrt lukaskabrt merged commit 5fa0be0 into feature/block-writing Jan 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants