Mercurial > irccd
comparison libirccd-test/irccd/test/js_fixture.cpp @ 773:8c44bbcbbab9
Misc: style, cleanup and update
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 26 Oct 2018 13:01:00 +0200 |
parents | 445c071e8efb |
children | 8460b4a34191 |
comparison
equal
deleted
inserted
replaced
772:f5ccf65ae929 | 773:8c44bbcbbab9 |
---|---|
19 #include "js_fixture.hpp" | 19 #include "js_fixture.hpp" |
20 | 20 |
21 namespace irccd::test { | 21 namespace irccd::test { |
22 | 22 |
23 js_fixture::js_fixture(const std::string& path) | 23 js_fixture::js_fixture(const std::string& path) |
24 : plugin_(new js::js_plugin("test", path)) | 24 : plugin_(new js::js_plugin("test", path)) |
25 { | 25 { |
26 for (const auto& f : js::js_api::registry) | 26 for (const auto& f : js::js_api::registry) |
27 f()->load(irccd_, plugin_); | 27 f()->load(irccd_, plugin_); |
28 | 28 |
29 if (!path.empty()) | 29 if (!path.empty()) |
30 plugin_->open(); | 30 plugin_->open(); |
31 } | 31 } |
32 | 32 |
33 } // !irccd::test | 33 } // !irccd::test |