Skip to content

test(wallet): cover TxBuilder drain and pending-coin filters on regtest#50

Merged
darioAnongba merged 1 commit intomainfrom
test/txbuilder-coin-selection-coverage
May 4, 2026
Merged

test(wallet): cover TxBuilder drain and pending-coin filters on regtest#50
darioAnongba merged 1 commit intomainfrom
test/txbuilder-coin-selection-coverage

Conversation

@darioAnongba
Copy link
Copy Markdown
Collaborator

Summary

  • add regtest coverage for drain_wallet() with drain_to() producing a single drain output
  • add regtest coverage showing exclude_unconfirmed() and exclude_below_confirmations(1) ignore trusted pending coins during coin selection
  • note the extra issue test: improve test coverage #22 coverage in CHANGELOG.md

Closes #22

Validation

  • cargo fmt --check
  • cargo clippy --all-features --all-targets -- -D warnings
  • cargo test --all-features
  • cd tests/node && corepack yarn lint
  • cd tests/node && corepack yarn build (blocked in this environment: missing clang for wasm32-unknown-unknown / wasm-pack build)

@darioAnongba darioAnongba self-assigned this May 4, 2026
@darioAnongba darioAnongba marked this pull request as ready for review May 4, 2026 19:18
@darioAnongba darioAnongba merged commit c6b749f into main May 4, 2026
12 checks passed
@darioAnongba darioAnongba deleted the test/txbuilder-coin-selection-coverage branch May 4, 2026 19:19
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.

test: improve test coverage

1 participant