Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
anonymous_namespace{test_signals.cpp}::TraceTest Class Reference

Fixture for signal_trace_start: SignalTest plus helpers to start and stop traces. More...

Inheritance diagram for anonymous_namespace{test_signals.cpp}::TraceTest:
anonymous_namespace{test_signals.cpp}::SignalTest

Protected Member Functions

QJsonObject start (const QString &spec, QJsonObject extra={ })
 Starts a trace on spec with extra arguments; returns its structured result.
QJsonObject stop (const QJsonObject &traceResult)
 Stops trace traceResult and returns the whole result.
Protected Member Functions inherited from anonymous_namespace{test_signals.cpp}::SignalTest
void SetUp () override
 Installs the tools, creates the object, connects a client.
void TearDown () override
 Deletes the object.
QJsonObject call (const QString &tool, const QJsonObject &args)
 Calls a tool and returns the whole result.
QString text (const QString &tool, const QJsonObject &args)
 Calls a tool and returns its text.
bool fails (const QString &tool, const QJsonObject &args)
 Calls a tool and reports whether it failed.
QJsonObject watch (const QString &spec, const QString &signal)
 Starts a watch and returns its structured result.
QString eventsSince (const QJsonObject &watchResult)
 The "signals" events after since, as text.

Static Protected Member Functions

static QString summary (const QJsonObject &stopResult)
 The summary text of stop().

Additional Inherited Members

Protected Attributes inherited from anonymous_namespace{test_signals.cpp}::SignalTest
Server server
 Server under test.
QString name
 Local socket name.
TestObject * object = nullptr
 "emitter", child of the application.
std::unique_ptr< LocalClient > client
 Initialized client.

Detailed Description

Fixture for signal_trace_start: SignalTest plus helpers to start and stop traces.


The documentation for this class was generated from the following file:
  • tests/core/test_signals.cpp