![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#include <apptests.h>
Classes | |
| struct | HandleCallback |
| RAII helper to remove no-longer-pending callback. More... | |
Public Member Functions | |
| AppTests (BitcoinApplication &app) | |
Private Slots | |
| void | appTests () |
| Entry point for BitcoinApplication tests. | |
| void | guiTests (BitcoinGUI *window) |
| Entry point for BitcoinGUI tests. | |
| void | consoleTests (RPCConsole *console) |
| Entry point for RPCConsole tests. | |
Private Member Functions | |
| void | expectCallback (std::string callback) |
| Add expected callback name to list of pending callbacks. | |
Private Attributes | |
| BitcoinApplication & | m_app |
| Bitcoin application. | |
| std::multiset< std::string > | m_callbacks |
Definition at line 17 of file apptests.h.
|
inlineexplicit |
Definition at line 21 of file apptests.h.
|
privateslot |
Entry point for BitcoinApplication tests.
Definition at line 55 of file apptests.cpp.
|
privateslot |
Entry point for RPCConsole tests.
Definition at line 98 of file apptests.cpp.
|
inlineprivate |
Add expected callback name to list of pending callbacks.
Definition at line 30 of file apptests.h.
|
privateslot |
Entry point for BitcoinGUI tests.
Definition at line 88 of file apptests.cpp.
|
private |
Bitcoin application.
Definition at line 41 of file apptests.h.
|
private |
Set of pending callback names. Used to track expected callbacks and shut down the app after the last callback has been handled and all tests have either run or thrown exceptions. This could be a simple int counter instead of a set of names, but the names might be useful for debugging.
Definition at line 47 of file apptests.h.