test: add non-empty coverage for SyncResponse and FullScanResponse#2111
test: add non-empty coverage for SyncResponse and FullScanResponse#2111mubashirrao1122 wants to merge 1 commit intobitcoindevkit:masterfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Adds non-empty test coverage for SyncResponse::is_empty and FullScanResponse::is_empty to prevent regressions where meaningful response data could be misclassified as empty.
Changes:
- Add a test asserting
SyncResponseis non-empty whenchain_updateis set. - Add a test asserting
FullScanResponseis non-empty whenlast_active_indicesis populated.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Hi! First contribution here added small tests for is_empty behavior. Happy to adjust anything if needed. Thanks |
|
Thanks for the contribution! These tests primarily exercise the boolean composition in If you're interested in contributing test coverage, here are some suggestions off the top of my (and @oleonardolima's) head:
|
This PR adds additional test coverage for
SyncResponse::is_emptyandFullScanResponse::is_empty.It verifies responses are correctly reported as non-empty when:
SyncResponselast_active_indicesis populated inFullScanResponseThese tests complement the existing default-empty coverage and help prevent
future regressions.
Tests: