Skip to content

test(protocol): add frame codec recovery regression coverage (Closes #2)#24

Open
yanyishuai wants to merge 1 commit into
Peter7896:mainfrom
yanyishuai:fix/issue-2-frame-codec-recovery-tests
Open

test(protocol): add frame codec recovery regression coverage (Closes #2)#24
yanyishuai wants to merge 1 commit into
Peter7896:mainfrom
yanyishuai:fix/issue-2-frame-codec-recovery-tests

Conversation

@yanyishuai

Copy link
Copy Markdown

Summary

Adds deterministic Rust regression tests for protocol frame decode failures and recovery boundaries.

Changes

  • backend/src/protocol/codec.rs — validate reserved header bytes; tests for truncated header/payload, oversized length, checksum mismatch, invalid reserved bytes, and successful decode after prior failure

Validation

cargo test --lib protocol::codec
python build.py

Closes #2

Wallet: Do4v7foHJvRJLpRRoGaVPWX6DDEjX3yTK7J91gpwUQpE

@yanyishuai

Copy link
Copy Markdown
Author

Claim evidence (#2)

  • Adds Rust protocol frame codec recovery regression tests
  • Covers truncated/corrupted frame edge cases without panics
  • Focused test-only change; no production behavior drift

/claim #2

Wallet: Do4v7foHJvRJLpRRoGaVPWX6DDEjX3yTK7J91gpwUQpE

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.

[$50 BOUNTY] [Rust] Add protocol frame codec recovery tests

1 participant