Skip to content

test: add coverage for errors for combinerawtransaction - #30264

Merged
fanquake merged 1 commit into
bitcoin:masterfrom
brunoerg:2024-06-test-combinerawtransaction
Jun 11, 2024
Merged

fanquake merged 1 commit into
bitcoin:masterfrom
brunoerg:2024-06-test-combinerawtransaction

Conversation

@brunoerg

Copy link
Copy Markdown
Contributor

This PR adds test coverage for the following errors for the combinerawtransaction RPC:

  • Tx decode failed
  • Missing transactions
  • Input not found or already spent

For reference: https://maflcko.github.io/b-c-cov/total.coverage/src/rpc/rawtransaction.cpp.gcov.html

* Tx decode failed
* Missing transactions
* Input not found or already spent
@DrahtBot

DrahtBot commented Jun 10, 2024 •

Copy link
Copy Markdown
Contributor

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

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK maflcko, tdb3

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #28710 (Remove the legacy wallet and BDB dependency by achow101)

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.

@DrahtBot DrahtBot added the Tests label Jun 10, 2024
@maflcko

maflcko commented Jun 10, 2024

Copy link
Copy Markdown
Member

lgtm ACK ab98e6f

@tdb3 tdb3 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK ab98e6f
Thanks for adding coverage. The new asserts look like they fit in nicely with the existing test code. Ran rpc_transaction locally (passed).

@fanquake
fanquake merged commit 5bc9b64 into bitcoin:master Jun 11, 2024
@bitcoin bitcoin locked and limited conversation to collaborators Jun 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants