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

Fixture with the introspection tools and a small TestObject tree under the application. More...

Inheritance diagram for anonymous_namespace{test_state.cpp}::StateTest:

Protected Member Functions

void SetUp () override
 Installs the tools and builds the tree.
void TearDown () override
 Deletes the tree.
QJsonObject call (const QString &tool, const QJsonObject &args)
 Calls a tool and returns its result.
QString text (const QString &tool, const QJsonObject &args)
 Calls a tool and returns its text.
QJsonObject structured (const QString &tool, const QJsonObject &args)
 Calls a tool and returns its structured content.

Protected Attributes

Server server
 Server under test.
QString name
 Local socket name.
TestObject * root = nullptr
 "stateRoot", child of the application.
TestObject * target = nullptr
 "stateTarget", text "loading".
std::unique_ptr< LocalClient > client
 Initialized client.

Detailed Description

Fixture with the introspection tools and a small TestObject tree under the application.


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