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

Fixture with the introspection (and so the signal) tools and a TestObject under the application. More...

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

Protected Member Functions

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.

Protected Attributes

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 with the introspection (and so the signal) tools and a TestObject under the application.


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