We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62d9ff9 commit d09d1cfCopy full SHA for d09d1cf
src/qt/test/apptests.cpp
@@ -21,6 +21,7 @@
21
22
#include <QAction>
23
#include <QLineEdit>
24
+#include <QRegularExpression>
25
#include <QScopedPointer>
26
#include <QSignalSpy>
27
#include <QTest>
@@ -30,6 +31,13 @@
30
31
#include <QtTest/QtTestGui>
32
33
namespace {
34
+//! Regex find a string group inside of the console output
35
+QString FindInConsole(const QString& output, const QString& pattern)
36
+{
37
+ const QRegularExpression re(pattern);
38
+ return re.match(output).captured(1);
39
+}
40
+
41
//! Call getblockchaininfo RPC and check first field of JSON output.
42
void TestRpcCommand(RPCConsole* console)
43
{
0 commit comments