test: cover scantxoutset scan-object validation errors #36877

Open
Pranav-error wants to merge 1 commit from test-scantxoutset-scanobject into master AGit
Pranav-error commented 2026-11-15 07:07:44 +00:00 (Migrated from github.com)

The existing tests cover invalid range values but miss a few cases where the scan object itself is malformed. This adds three checks for when the scan object is not a string or object, when desc is missing, and when range has an invalid format. Each case verifies that the RPC returns the expected error (-8).

The existing tests cover invalid range values but miss a few cases where the scan object itself is malformed. This adds three checks for when the scan object is not a string or object, when `desc` is missing, and when `range` has an invalid format. Each case verifies that the RPC returns the expected error (-8).
DrahtBot commented 2026-11-15 07:07:54 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.
A summary of reviews will appear here.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #36990 (test: replace hard-coded RPC error codes by l0rinc)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36877 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36877.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36877#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. A summary of reviews will appear here. <!--174a7506f384e20aa4161008e828411d--> ### Conflicts Reviewers, this pull request conflicts with the following ones: * [#36990](https://github.com/bitcoin/bitcoin/pull/36990) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36990.svg"></sub> (test: replace hard-coded RPC error codes by l0rinc) If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. <!--5faf32d7da4f0f540f40219e4f7537a3-->
First-time contributor

No verified findings are available from this review.

Review coverage was incomplete.


Reviewed: 0b2baf2314a8 · Review report · Previous reports

permalink

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:4afac00dcf2100063250ef321636839508f727ef6ae0cc9ede404a011c46a59f:87c7358e6b1a9709279e41fe01f3f324759c2be7a6239dcb2b0a6d875f8630b0 --> <!-- ralph-base:a527a0077a0fcae913188410214efe98021c0cca --> <!-- ralph-head:0b2baf2314a8f1a3cc826a8b12215b585f94985f --> <!-- ralph-case:f6f30be72b1b5a86ac5ef8850e1fe05b3f691a917700df273fc325d691c24407 --> No verified findings are available from this review. Review coverage was incomplete. <!-- Review tier: routine --> --- Reviewed: [`0b2baf2314a8`](<https://git.fish.foo/bitcoin/bitcoin/commit/0b2baf2314a8f1a3cc826a8b12215b585f94985f>) · [Review report](<https://review.fish.foo/report/36877-0b2baf2314a8f1a3cc826a8b12215b585f94985f-2691-1.html>) · [Previous reports](<https://review.fish.foo/traces/36877/>) [permalink](<https://review.fish.foo/report/36877-0b2baf2314a8f1a3cc826a8b12215b585f94985f-2691-1.html>)
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!36877
No description provided.