aboutsummaryrefslogtreecommitdiff
path: root/src/qt/sendcoinsdialog.h
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2022-12-14 10:52:33 -0300
committerfurszy <matiasfurszyfer@protonmail.com>2023-04-03 17:23:42 -0300
commit74eac3a82fc948467d5a15a5af420b36ce8eb04a (patch)
tree3a9b6fcf76a246422531b9a9f2ab15c31fadcb1c /src/qt/sendcoinsdialog.h
parentdc1cc1c35995dc09085b3d9270c445b7923fdb51 (diff)
test: add coverage for 'useAvailableBalance' functionality
The following cases were covered: Case 1: No coin control selected coins. - 'useAvailableBalance' should fill the amount edit box with the total available balance. Case 2: With coin control selected coins. - 'useAvailableBalance' should fill the amount edit box with the sum of the selected coins values.
Diffstat (limited to 'src/qt/sendcoinsdialog.h')
-rw-r--r--src/qt/sendcoinsdialog.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/sendcoinsdialog.h b/src/qt/sendcoinsdialog.h
index 2fcdf5b32a..ac05cd98e5 100644
--- a/src/qt/sendcoinsdialog.h
+++ b/src/qt/sendcoinsdialog.h
@@ -49,6 +49,9 @@ public:
void pasteEntry(const SendCoinsRecipient &rv);
bool handlePaymentRequest(const SendCoinsRecipient &recipient);
+ // Only used for testing-purposes
+ wallet::CCoinControl* getCoinControl() { return m_coin_control.get(); }
+
public Q_SLOTS:
void clear();
void reject() override;