Negative PR with extended test coverage :).
Cleaned duplicated code and added coverage for the 'AvailableCoins' incremental result.
The class
AvailableCoinsTestingSetupinsideavailablecoins_tests.cppis a plain copy ofListCoinsTestingSetupthat is insidewallet_tests.cpp.So, deleted the file and moved the
BasicOutputTypesTesttest case towallet_tests.cpp.Added arg to include/skip locked coins from the
AvailableCoinsresult. 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.