irccd  3.0.3
Public Member Functions | Protected Attributes | List of all members
irccd::test::js_plugin_fixture Class Reference

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::pluginplugin_
 The plugin to test. More...
 
std::shared_ptr< mock_serverserver_
 A mock server. More...
 

Detailed Description

test fixture helper for Javascript plugins.

Holds a plugin that is opened (but not loaded).

Constructor & Destructor Documentation

◆ js_plugin_fixture()

irccd::test::js_plugin_fixture::js_plugin_fixture ( std::string  path)

Construct the fixture test.

Parameters
paththe full plugin path (e.g. /usr/lib64/irccd/ask.js)

Member Data Documentation

◆ bot_

daemon::bot irccd::test::js_plugin_fixture::bot_ {service_}
protected

The irccd instance.

◆ plugin_

std::shared_ptr<js::plugin> irccd::test::js_plugin_fixture::plugin_
protected

The plugin to test.

◆ server_

std::shared_ptr<mock_server> irccd::test::js_plugin_fixture::server_
protected

A mock server.

◆ service_

boost::asio::io_service irccd::test::js_plugin_fixture::service_
protected

The I/O service.


The documentation for this class was generated from the following file: