comparison tests/src/plugins/history/main.cpp @ 723:e8c4ba5ed1c6

Tests: put code in anonymous namespaces, closes #889 @10m
author David Demelier <markand@malikania.fr>
date Mon, 16 Jul 2018 21:47:27 +0200
parents 3e816cebed2c
children 64839725f346
comparison
equal deleted inserted replaced
722:3e816cebed2c 723:e8c4ba5ed1c6
25 #include <irccd/daemon/server.hpp> 25 #include <irccd/daemon/server.hpp>
26 26
27 #include <irccd/test/plugin_test.hpp> 27 #include <irccd/test/plugin_test.hpp>
28 28
29 namespace irccd { 29 namespace irccd {
30
31 namespace {
30 32
31 class history_test : public plugin_test { 33 class history_test : public plugin_test {
32 public: 34 public:
33 history_test() 35 history_test()
34 : plugin_test(PLUGIN_PATH) 36 : plugin_test(PLUGIN_PATH)
144 BOOST_REQUIRE(std::regex_match(cmd["message"].get<std::string>(), rule)); 146 BOOST_REQUIRE(std::regex_match(cmd["message"].get<std::string>(), rule));
145 } 147 }
146 148
147 BOOST_AUTO_TEST_SUITE_END() 149 BOOST_AUTO_TEST_SUITE_END()
148 150
151 } // !namespace
152
149 } // !irccd 153 } // !irccd