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

A server on a unique local socket, with one tool and the requests its approval was asked. More...

Inheritance diagram for anonymous_namespace{test_sessions.cpp}::SessionsTest:

Protected Member Functions

void SetUp () override
 Adds a tool and starts listening.
void collectRequests ()
 Collects each request the approval is asked, without answering it.

Static Protected Member Functions

static QJsonObject initializeParams ()
 An initialize request's parameters, as a client sends them.
static int errorCode (const QJsonObject &response)
 The JSON-RPC error code of response (0 if it isn't an error).
static QString errorMessage (const QJsonObject &response)
 The JSON-RPC error message of response.

Protected Attributes

Server server
 The server under test.
QString name
 Its socket name.
QList< SessionRequest > requests
 What its approval was asked.

Detailed Description

A server on a unique local socket, with one tool and the requests its approval was asked.


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