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

Test fixture helper for Javascript modules. More...

#include <js_fixture.hpp>

Inheritance diagram for irccd::test::js_fixture:
irccd::test::irccd_fixture

Protected Member Functions

 js_fixture (const std::string &path="")
 
- Protected Member Functions inherited from irccd::test::irccd_fixture
 irccd_fixture ()
 

Protected Attributes

std::shared_ptr< js::pluginplugin_
 Javascript plugin. More...
 
- Protected Attributes inherited from irccd::test::irccd_fixture
boost::asio::io_context ctx_
 Boost.Asio context. More...
 
daemon::bot bot_ {ctx_}
 Main irccd daemon. More...
 

Detailed Description

Test fixture helper for Javascript modules.

Constructor & Destructor Documentation

◆ js_fixture()

irccd::test::js_fixture::js_fixture ( const std::string &  path = "")
protected

Constructor.

Initialize a Javascript plugin with all Javascript API modules.

Parameters
paththe path to a Javascript file if required

Member Data Documentation

◆ plugin_

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

Javascript plugin.


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