irccd
3.0.3
|
test fixture helper for Javascript plugins. More...
#include <js_plugin_fixture.hpp>
Public Member Functions | |
js_plugin_fixture (std::string path) | |
Protected Attributes | |
boost::asio::io_service | service_ |
The I/O service. More... | |
daemon::bot | bot_ {service_} |
The irccd instance. More... | |
std::shared_ptr< js::plugin > | plugin_ |
The plugin to test. More... | |
std::shared_ptr< mock_server > | server_ |
A mock server. More... | |
test fixture helper for Javascript plugins.
Holds a plugin that is opened (but not loaded).
irccd::test::js_plugin_fixture::js_plugin_fixture | ( | std::string | path | ) |
Construct the fixture test.
path | the full plugin path (e.g. /usr/lib64/irccd/ask.js) |
|
protected |
The irccd instance.
|
protected |
The plugin to test.
|
protected |
A mock server.
|
protected |
The I/O service.