]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#4453] formatting
authorRazvan Becheriu <razvan@isc.org>
Mon, 4 May 2026 07:34:31 +0000 (10:34 +0300)
committerRazvan Becheriu <razvan@isc.org>
Mon, 4 May 2026 09:16:58 +0000 (12:16 +0300)
src/bin/dhcp6/tests/classify_unittest.cc

index e898d6184c3b580b0a5eec7166cf6bc79eea87c8..36aa4b9ad27b45e7d00918430c228062f110e05f 100644 (file)
@@ -549,7 +549,9 @@ public:
 
 // This test checks that empty client classes is supported.
 TEST_F(ClassifyTest, emptyClientClasses) {
-    std::string config = "{ \"interfaces-config\": {"
+    std::string config =
+        "{"
+        "\"interfaces-config\": {"
         "    \"interfaces\": [ \"*\" ] }, "
         "\"preferred-lifetime\": 3000,"
         "\"rebind-timer\": 2000, "
@@ -602,7 +604,9 @@ TEST_F(ClassifyTest, matchClassification) {
     IfaceMgrTestConfig test_config(true);
     // The router class matches incoming packets with foo in a host-name
     // option (code 1234) and sets an ipv6-forwarding option in the response.
-    std::string config = "{ \"interfaces-config\": {"
+    std::string config =
+        "{"
+        "\"interfaces-config\": {"
         "    \"interfaces\": [ \"*\" ] }, "
         "\"preferred-lifetime\": 3000,"
         "\"rebind-timer\": 2000, "
@@ -730,7 +734,9 @@ TEST_F(ClassifyTest, additional) {
     IfaceMgrTestConfig test_config(true);
     // The router class matches incoming packets with foo in a host-name
     // option (code 1234) and sets an ipv6-forwarding option in the response.
-    std::string config = "{ \"interfaces-config\": {"
+    std::string config =
+        "{"
+        "\"interfaces-config\": {"
         "    \"interfaces\": [ \"*\" ] }, "
         "\"preferred-lifetime\": 3000,"
         "\"rebind-timer\": 2000, "
@@ -841,7 +847,9 @@ TEST_F(ClassifyTest, additionalClassification) {
     IfaceMgrTestConfig test_config(true);
     // The router class matches incoming packets with foo in a host-name
     // option (code 1234) and sets an ipv6-forwarding option in the response.
-    std::string config = "{ \"interfaces-config\": {"
+    std::string config =
+        "{"
+        "\"interfaces-config\": {"
         "    \"interfaces\": [ \"*\" ] }, "
         "\"preferred-lifetime\": 3000,"
         "\"rebind-timer\": 2000, "
@@ -958,7 +966,9 @@ TEST_F(ClassifyTest, subnetClassPriority) {
     // Subnet sets an ipv6-forwarding option in the response.
     // The router class matches incoming packets with foo in a host-name
     // option (code 1234) and sets an ipv6-forwarding option in the response.
-    std::string config = "{ \"interfaces-config\": {"
+    std::string config =
+        "{"
+        "\"interfaces-config\": {"
         "    \"interfaces\": [ \"*\" ] }, "
         "\"preferred-lifetime\": 3000,"
         "\"rebind-timer\": 2000, "
@@ -1033,7 +1043,9 @@ TEST_F(ClassifyTest, subnetGlobalPriority) {
     // Subnet sets an ipv6-forwarding option in the response.
     // The router class matches incoming packets with foo in a host-name
     // option (code 1234) and sets an ipv6-forwarding option in the response.
-    std::string config = "{ \"interfaces-config\": {"
+    std::string config =
+        "{"
+        "\"interfaces-config\": {"
         "    \"interfaces\": [ \"*\" ] }, "
         "\"preferred-lifetime\": 3000,"
         "\"rebind-timer\": 2000, "
@@ -1099,7 +1111,9 @@ TEST_F(ClassifyTest, classGlobalPriority) {
     // A global ipv6-forwarding option is set in the response.
     // The router class matches incoming packets with foo in a host-name
     // option (code 1234) and sets an ipv6-forwarding option in the response.
-    std::string config = "{ \"interfaces-config\": {"
+    std::string config =
+        "{"
+        "\"interfaces-config\": {"
         "    \"interfaces\": [ \"*\" ] }, "
         "\"preferred-lifetime\": 3000,"
         "\"rebind-timer\": 2000, "
@@ -1176,7 +1190,9 @@ TEST_F(ClassifyTest, classGlobalPersistency) {
     // option (code 1234) and sets an ipv6-forwarding option in the response.
     // Note the persistency flag follows a "OR" semantic so to set
     // it to false (or to leave the default) has no effect.
-    std::string config = "{ \"interfaces-config\": {"
+    std::string config =
+        "{"
+        "\"interfaces-config\": {"
         "    \"interfaces\": [ \"*\" ] }, "
         "\"preferred-lifetime\": 3000,"
         "\"rebind-timer\": 2000, "
@@ -1246,7 +1262,9 @@ TEST_F(ClassifyTest, classNeverSend) {
     // option (code 1234) and sets an ipv6-forwarding option in the response.
     // Note the cancellation flag follows a "OR" semantic so to set
     // it to false (or to leave the default) has no effect.
-    std::string config = "{ \"interfaces-config\": {"
+    std::string config =
+        "{"
+        "\"interfaces-config\": {"
         "    \"interfaces\": [ \"*\" ] }, "
         "\"preferred-lifetime\": 3000,"
         "\"rebind-timer\": 2000, "
@@ -1316,7 +1334,9 @@ TEST_F(ClassifyTest, clientClassifySubnet) {
     // The second subnet does not play any role here. The client's
     // IP address belongs to the first subnet, so only that first
     // subnet is being tested.
-    std::string config = "{ \"interfaces-config\": {"
+    std::string config =
+        "{"
+        "\"interfaces-config\": {"
         "  \"interfaces\": [ \"*\" ]"
         "},"
         "\"preferred-lifetime\": 3000,"
@@ -1368,7 +1388,9 @@ TEST_F(ClassifyTest, clientClassifyPool) {
     // The second pool does not play any role here. The client's
     // IP address belongs to the first pool, so only that first
     // pool is being tested.
-    std::string config = "{ \"interfaces-config\": {"
+    std::string config =
+        "{"
+        "\"interfaces-config\": {"
         "  \"interfaces\": [ \"*\" ]"
         "},"
         "\"preferred-lifetime\": 3000,"
@@ -1464,7 +1486,9 @@ TEST_F(ClassifyTest, clientClassifyPoolKnown) {
     IfaceMgrTestConfig test_config(true);
     // This test configures 2 pools.
     // The first one requires reservation, the second does the opposite.
-    std::string config = "{ \"interfaces-config\": {"
+    std::string config =
+        "{"
+        "\"interfaces-config\": {"
         "  \"interfaces\": [ \"*\" ]"
         "},"
         "\"preferred-lifetime\": 3000,"
@@ -1587,7 +1611,9 @@ TEST_F(ClassifyTest, relayOverrideAndClientClass) {
     // This test configures 2 subnets. They both are on the same link, so they
     // have the same relay-ip address. Furthermore, the first subnet is
     // reserved for clients that belong to class "foo".
-    std::string config = "{ \"interfaces-config\": {"
+    std::string config =
+        "{"
+        "\"interfaces-config\": {"
         "  \"interfaces\": [ \"*\" ]"
         "},"
         "\"preferred-lifetime\": 3000,"
@@ -1727,7 +1753,9 @@ TEST_F(ClassifyTest, member) {
     IfaceMgrTestConfig test_config(true);
     // The router class matches incoming packets with foo in a host-name
     // option (code 1234) and sets an ipv6-forwarding option in the response.
-    std::string config = "{ \"interfaces-config\": {"
+    std::string config =
+        "{"
+        "\"interfaces-config\": {"
         "    \"interfaces\": [ \"*\" ] }, "
         "\"preferred-lifetime\": 3000,"
         "\"rebind-timer\": 2000, "