This PR adds a unit test for basic wallet interface getter methods in src/wallet/interfaces.cpp test verifies that WalletImpl correctly returns wallet properties and configuration values.
Added test case wallet_interface_getters_basic in src/wallet/test/wallet_tests.cpp that tests the following methods:
getWalletName()isCrypted()isLocked()getDefaultAddressType()getDefaultMaxTxFee()getConfirmTarget()
getter methods are untested. regressions in these methods could go undetected. The test catches the following types of bugs:
0./bin/test_bitcoin --run_test=wallet_tests/wallet_interface_getters_basic
1Running 1 test case...
2./wallet/test/wallet_tests.cpp(745): error: in "wallet_tests/wallet_interface_getters_basic": check wallet_name == "test_wallet" has failed [default != test_wallet]
3./wallet/test/wallet_tests.cpp(747): error: in "wallet_tests/wallet_interface_getters_basic": check wallet_interface->isCrypted() == false has failed [true != false]
4./wallet/test/wallet_tests.cpp(749): error: in "wallet_tests/wallet_interface_getters_basic": check wallet_interface->isLocked() == false has failed [true != false]
5./wallet/test/wallet_tests.cpp(752): error: in "wallet_tests/wallet_interface_getters_basic": check default_type == OutputType::BECH32 || default_type == OutputType::LEGACY || default_type == OutputType::P2SH_SEGWIT || default_type == OutputType::BECH32M has failed
6./wallet/test/wallet_tests.cpp(756): error: in "wallet_tests/wallet_interface_getters_basic": check max_fee > 0 has failed
7./wallet/test/wallet_tests.cpp(759): error: in "wallet_tests/wallet_interface_getters_basic": check confirm_target > 0 has failed
8
9*** 6 failures are detected in the test module "Bitcoin Core Test Suite"