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

Sets environment variables for a test, and restores them after it. More...

Public Member Functions

 Environment ()
 Remembers the variables these tests change, and clears them.
 ~Environment ()
 Puts them back.

Private Attributes

QList< std::pair< const char *, QByteArray > > m_saved
 Their values before, null for unset.

Static Private Attributes

static constexpr std::array< const char *, 3 > kNames
 The variables locate() and configDirectory() read.

Detailed Description

Sets environment variables for a test, and restores them after it.

Member Data Documentation

◆ kNames

std::array<const char *, 3> anonymous_namespace{test_trust.cpp}::Environment::kNames
staticconstexprprivate
Initial value:
{ "SONDE_QML_LIBRARY", "SONDE_TRUST_FILE",
"XDG_CONFIG_HOME" }

The variables locate() and configDirectory() read.


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