MCPcopy Create free account
hub / github.com/ElementsProject/elements / FindInConsole

Function FindInConsole

src/qt/test/apptests.cpp:36–40  ·  view source on GitHub ↗

Regex find a string group inside of the console output

Source from the content-addressed store, hash-verified

34namespace {
35//! Regex find a string group inside of the console output
36QString FindInConsole(const QString& output, const QString& pattern)
37{
38 const QRegularExpression re(pattern);
39 return re.match(output).captured(1);
40}
41
42//! Call getblockchaininfo RPC and check first field of JSON output.
43void TestRpcCommand(RPCConsole* console)

Callers 1

TestRpcCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected