]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[65-libyang-config-adaptor] A few cosmetics improvements
authorFrancis Dupont <fdupont@isc.org>
Tue, 23 Oct 2018 15:52:32 +0000 (17:52 +0200)
committerFrancis Dupont <fdupont@isc.org>
Tue, 23 Oct 2018 15:52:32 +0000 (17:52 +0200)
src/lib/yang/adaptor_config.cc
src/lib/yang/tests/.gitignore [new file with mode: 0644]
src/lib/yang/tests/Makefile.am

index 729b982c29479adca2a49484ae4441cd33b84cb9..653691b66e1c001fc41d9323026a75349fa78491 100644 (file)
@@ -37,7 +37,7 @@ AdaptorConfig::subnetsCollectID(ConstElementPtr subnets, SubnetIDSet& set) {
     }
 
     // If there are subnets defined, let's go over them one by one and
-    // colled subnet-ids used in them.
+    // collect subnet-ids used in them.
     for (ConstElementPtr subnet : subnets->listValue()) {
         if (!collectID(subnet, set)) {
             have_ids = false;
@@ -500,6 +500,7 @@ void
 AdaptorConfig::sanitizeDatabase(ConstElementPtr dhcp) {
     ConstElementPtr database = dhcp->get("hosts-database");
     if (!database) {
+        // nothing to do here.
         return;
     }
 
@@ -514,6 +515,7 @@ void
 AdaptorConfig::sanitizeRelaySuppliedOptions(ConstElementPtr dhcp) {
     ConstElementPtr options = dhcp->get("relay-supplied-options");
     if (!options || options->empty()) {
+        // nothing to do here.
         return;
     }
     ElementPtr mutable_dhcp = boost::const_pointer_cast<Element>(dhcp);
diff --git a/src/lib/yang/tests/.gitignore b/src/lib/yang/tests/.gitignore
new file mode 100644 (file)
index 0000000..d6d1ec8
--- /dev/null
@@ -0,0 +1 @@
+/run_unittests
index cd822beeb9943a829b07be40aea7f444ded12397..9297c9c5977b11fc8d799789e554675ac66977b2 100644 (file)
@@ -18,11 +18,11 @@ TESTS =
 if HAVE_GTEST
 TESTS += run_unittests
 run_unittests_SOURCES  = adaptor_unittests.cc
-run_unittests_SOURCES += adaptor_config_unittests.cc
 run_unittests_SOURCES += adaptor_option_unittests.cc
 run_unittests_SOURCES += adaptor_pool_unittests.cc
 run_unittests_SOURCES += adaptor_host_unittests.cc
 run_unittests_SOURCES += adaptor_subnet_unittests.cc
+run_unittests_SOURCES += adaptor_config_unittests.cc
 run_unittests_SOURCES += sysrepo_setup.h
 run_unittests_SOURCES += translator_unittests.cc
 run_unittests_SOURCES += translator_control_socket_unittests.cc