0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-15 11:36:00 -05:00
bitcoin-bitcoin-core/src/wallet/test
Andrew Chow 65d7c31b3f
Merge bitcoin/bitcoin#25789: test: clean and extend availablecoins_tests coverage
9622fe64b8 test: move coins result test to wallet_tests.cpp (furszy)
f69347d058 test: extend and simplify availablecoins_tests (furszy)
212ccdf2c2 wallet: AvailableCoins, add arg to include/skip locked coins (furszy)

Pull request description:

  Negative PR with extended test coverage :).

  1) Cleaned duplicated code and added coverage for the 'AvailableCoins' incremental result.

  2) The class `AvailableCoinsTestingSetup` inside `availablecoins_tests.cpp` is a plain copy
  of `ListCoinsTestingSetup` that is inside `wallet_tests.cpp`.

      So, deleted the file and moved the `BasicOutputTypesTest` test case to `wallet_tests.cpp`.

  3) Added arg to include/skip locked coins from the `AvailableCoins` result. This is needed for point (1) as otherwise the wallet will spend the coins that we recently created due its closeness to the recipient amount.
  Note: this last point comes from #25659 where I'm using the same functionality to clean/speedup another flow as well.

ACKs for top commit:
  achow101:
    ACK 9622fe64b8
  theStack:
    ACK 9622fe64b8
  aureleoules:
    reACK 9622fe64b8, nice cleanup!

Tree-SHA512: 1ed9133120bfe8815455d1ad317bb0ff96e11a0cc34ee8098716ab9b001749168fa649212b2fa14b330c1686cb1f29039ff1f88ae306db68881b0428c038f388
2023-01-03 12:52:40 -05:00
..
fuzz scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
coinselector_tests.cpp scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
db_tests.cpp scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
feebumper_tests.cpp test: Remove unused txmempool include from tests 2022-10-18 14:02:09 +02:00
init_test_fixture.cpp scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
init_test_fixture.h Add src/wallet/* code to wallet:: namespace 2022-01-06 22:14:16 -05:00
init_tests.cpp scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
ismine_tests.cpp scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
psbt_wallet_tests.cpp scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
rpc_util_tests.cpp refactor: move Boost datetime usage to wallet 2022-10-01 11:41:53 +01:00
scriptpubkeyman_tests.cpp Add src/wallet/* code to wallet:: namespace 2022-01-06 22:14:16 -05:00
spend_tests.cpp scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
util.cpp scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
util.h scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
wallet_crypto_tests.cpp scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
wallet_test_fixture.cpp scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
wallet_test_fixture.h scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
wallet_tests.cpp Merge bitcoin/bitcoin#25789: test: clean and extend availablecoins_tests coverage 2023-01-03 12:52:40 -05:00
wallet_transaction_tests.cpp Add src/wallet/* code to wallet:: namespace 2022-01-06 22:14:16 -05:00
walletdb_tests.cpp scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
walletload_tests.cpp test: load wallet, coverage for crypted keys 2022-11-21 17:30:00 -03:00