Test fixture helper for transport commands.
More...
#include <command_fixture.hpp>
Test fixture helper for transport commands.
This fixture automatically adds a mock_server and mock_plugin named "test" and added to the respective services.
◆ command_fixture()
irccd::test::command_fixture::command_fixture |
( |
| ) |
|
|
protected |
◆ request()
auto irccd::test::command_fixture::request |
( |
nlohmann::json |
json | ) |
-> nlohmann::json |
|
protected |
Get result from irccd.
- Parameters
-
- Returns
- the json message sent (if any)
◆ client_
◆ plugin_
std::shared_ptr<mock_plugin> irccd::test::command_fixture::plugin_ |
|
protected |
◆ server_
std::shared_ptr<mock_server> irccd::test::command_fixture::server_ |
|
protected |
◆ stream_
std::shared_ptr<mock_stream> irccd::test::command_fixture::stream_ |
|
protected |
The fake transport_client stream.
The documentation for this class was generated from the following file: