From: Francis Dupont Date: Wed, 17 Oct 2018 14:01:13 +0000 (+0200) Subject: [148-lib-process-servers-without-arguments] trailing spaces X-Git-Tag: 130-all-keys-sample_base~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=005602d0a3d95a1876da73c46b2aecbc90c02466;p=thirdparty%2Fkea.git [148-lib-process-servers-without-arguments] trailing spaces --- diff --git a/src/lib/process/tests/config_base_unittests.cc b/src/lib/process/tests/config_base_unittests.cc index a749c98c69..0b45bd03cc 100644 --- a/src/lib/process/tests/config_base_unittests.cc +++ b/src/lib/process/tests/config_base_unittests.cc @@ -34,7 +34,7 @@ TEST(ConfigBase, configControlInfoTests) { ctl_info1->addConfigDatabase("type=mysql host=example.com"); ctl_info1->addConfigDatabase("type=mysql host=example2.com"); - // Create a ConfigBase + // Create a ConfigBase ConfigBaseImpl base1; base1.setConfigControlInfo(ctl_info1); diff --git a/src/lib/process/tests/config_ctl_parser_unittests.cc b/src/lib/process/tests/config_ctl_parser_unittests.cc index 9a1f136431..bf1be4d1ac 100644 --- a/src/lib/process/tests/config_ctl_parser_unittests.cc +++ b/src/lib/process/tests/config_ctl_parser_unittests.cc @@ -24,7 +24,7 @@ TEST(ConfigCtlInfoParser, validConfigs) { std::string configs[] = { "{}", - "{ \"config-databases\": [] }", + "{ \"config-databases\": [] }", "{ \"config-databases\": [ \n" " { \n" @@ -37,7 +37,7 @@ TEST(ConfigCtlInfoParser, validConfigs) { " \"user\":\"bob\", \n" " \"password\":\"wonder\" \n" " } \n" - "] } \n" + "] } \n" }; for (auto config : configs) { @@ -59,7 +59,7 @@ TEST(ConfigCtlInfoParser, validConfigs) { // When the config is empty, ControlConfigInfo::toElement still // generates a map with an empty db list. Replace source for - // element comparison below. + // element comparison below. if (source_elem->size() == 0) { ASSERT_NO_THROW (source_elem = Element::fromJSON( "{ \"config-databases\": [] }")); @@ -74,12 +74,12 @@ TEST(ConfigCtlInfoParser, validConfigs) { TEST(ConfigCtlInfoParser, invalidConfigs) { // Note that configurations are must be valid JSON, but invalid logically. std::string configs[] = { - "{ \"config-databases\": \"not_list\" }", + "{ \"config-databases\": \"not_list\" }", "{ \"config-databases\": [ \n" " { \n" " \"bogus\": \"param\" \n" " } \n" - "] } \n" + "] } \n" }; for (auto config : configs) { @@ -91,7 +91,7 @@ TEST(ConfigCtlInfoParser, invalidConfigs) { " JSON error, test is broken: " << config; // Parse the Elements into a ConfigControlInfo. - ASSERT_THROW(parser.parse(source_elem), isc::ConfigError) + ASSERT_THROW(parser.parse(source_elem), isc::ConfigError) << "config: " << config; } } diff --git a/src/lib/process/tests/log_parser_unittests.cc b/src/lib/process/tests/log_parser_unittests.cc index d66f05903c..b2debe68bb 100644 --- a/src/lib/process/tests/log_parser_unittests.cc +++ b/src/lib/process/tests/log_parser_unittests.cc @@ -73,7 +73,7 @@ class LoggingTest : public ::testing::Test { }; const char* LoggingTest::TEST_LOG_NAME = "kea.test.log"; -const int LoggingTest::TEST_MAX_SIZE = 204800; // Smallest without disabling rotation +const int LoggingTest::TEST_MAX_SIZE = 204800; // Smallest without disabling rotation const int LoggingTest::TEST_MAX_VERS = 2; // More than the default of 1 // Checks that the constructor is able to process specified storage properly.