瀏覽代碼

Harden security within tests

Patrick-Christopher Mattulat 23 小時之前
父節點
當前提交
e4e6b28cd0
共有 57 個文件被更改,包括 559 次插入558 次删除
  1. 4 4
      test/cases/boxing/BooleanTest.cpp
  2. 44 44
      test/cases/boxing/DoubleTest.cpp
  3. 45 45
      test/cases/boxing/FloatTest.cpp
  4. 43 43
      test/cases/boxing/IntegerTest.cpp
  5. 61 61
      test/cases/boxing/LongTest.cpp
  6. 11 11
      test/cases/boxing/StringTest.cpp
  7. 3 3
      test/cases/core/ClassTest.cpp
  8. 4 4
      test/cases/core/VersionTest.cpp
  9. 3 3
      test/cases/core/exception/ExceptionMessageTest.cpp
  10. 4 4
      test/cases/event/EventListenerTest.cpp
  11. 4 4
      test/cases/event/EventManagerTest.cpp
  12. 2 2
      test/cases/event/EventTest.cpp
  13. 25 25
      test/cases/io/FileTest.cpp
  14. 6 6
      test/cases/io/StorableFileTest.cpp
  15. 12 12
      test/cases/io/logging/LogLevelTest.cpp
  16. 37 37
      test/cases/io/logging/LoggerTest.cpp
  17. 3 3
      test/cases/io/section-pair/SectionPairMessageFormatterTest.cpp
  18. 2 2
      test/cases/io/section-pair/evaluator/SectionPairIdentifierArgumentEvaluatorTest.cpp
  19. 2 2
      test/cases/io/section-pair/evaluator/SectionPairRowArgumentEvaluatorTest.cpp
  20. 2 2
      test/cases/io/section-pair/evaluator/SectionPairRowListValueArgumentEvaluatorTest.cpp
  21. 2 2
      test/cases/io/section-pair/evaluator/SectionPairRowSingleValueArgumentEvaluatorTest.cpp
  22. 2 2
      test/cases/io/section-pair/evaluator/SectionPairSectionArgumentEvaluatorTest.cpp
  23. 2 2
      test/cases/io/section-pair/evaluator/SectionPairValueArgumentEvaluatorTest.cpp
  24. 16 16
      test/cases/io/section-pair/model/SectionPairDocumentTest.cpp
  25. 9 9
      test/cases/io/section-pair/model/SectionPairRowListValueTest.cpp
  26. 6 6
      test/cases/io/section-pair/model/SectionPairRowSingleValueTest.cpp
  27. 20 19
      test/cases/io/section-pair/model/SectionPairRowTest.cpp
  28. 21 21
      test/cases/io/section-pair/model/SectionPairSectionTest.cpp
  29. 2 2
      test/cases/io/section-pair/reader/SectionPairFileReaderTest.cpp
  30. 3 3
      test/cases/io/section-pair/serialization/SerializableSectionPairDocumentTest.cpp
  31. 3 3
      test/cases/io/section-pair/serialization/SerializableSectionPairRowListValueTest.cpp
  32. 3 3
      test/cases/io/section-pair/serialization/SerializableSectionPairRowSingleValueTest.cpp
  33. 19 19
      test/cases/io/section-pair/serialization/SerializableSectionPairRowTest.cpp
  34. 2 2
      test/cases/io/section-pair/serialization/SerializableSectionPairSectionTest.cpp
  35. 3 3
      test/cases/io/section-pair/validator/SectionPairRowListValueValidatorTest.cpp
  36. 2 2
      test/cases/io/section-pair/validator/SectionPairRowSingleValueValidatorTest.cpp
  37. 2 2
      test/cases/io/section-pair/validator/SectionPairRowValidatorTest.cpp
  38. 2 2
      test/cases/io/section-pair/validator/SectionPairSectionValidatorTest.cpp
  39. 3 3
      test/cases/io/section-pair/validator/SectionPairValueValidatorTest.cpp
  40. 3 3
      test/cases/io/xml/XmlAttributeTest.cpp
  41. 4 4
      test/cases/io/xml/XmlDeclarationTest.cpp
  42. 5 5
      test/cases/io/xml/XmlDocumentTest.cpp
  43. 17 17
      test/cases/io/xml/XmlNodeTest.cpp
  44. 3 3
      test/cases/io/xml/XmlParseParameterTest.cpp
  45. 7 7
      test/cases/io/xml/XmlParserTest.cpp
  46. 5 5
      test/cases/io/xml/XmlReaderTest.cpp
  47. 22 22
      test/cases/time/DateTest.cpp
  48. 3 3
      test/cases/time/common/DateParameterMapperTest.cpp
  49. 12 12
      test/cases/time/common/DateParameterTest.cpp
  50. 4 4
      test/cases/time/system-time/SystemTimeTest.cpp
  51. 2 2
      test/classes/TestException.cpp
  52. 3 3
      test/classes/TestHelper.cpp
  53. 2 2
      test/classes/core/MathOddValidator.cpp
  54. 3 3
      test/classes/io/MockFileExistenceEvaluator.cpp
  55. 6 6
      test/classes/io/section-pair/SectionPairDocumentProvider.cpp
  56. 12 12
      test/classes/io/section-pair/SectionPairSectionProvider.cpp
  57. 7 7
      test/classes/io/section-pair/SerializableSectionPairRowProvider.cpp

+ 4 - 4
test/cases/boxing/BooleanTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-09
- * Changed:         2023-03-25
+ * Changed:         2025-12-21
  *
  * */
 
@@ -59,13 +59,13 @@ namespace
 
   TEST_F(BooleanTest, operator_negation_negative_value)
   {
-    Boolean expression{};
+    const Boolean expression{};
     ASSERT_TRUE(!expression);
   }
 
   TEST_F(BooleanTest, operator_negation_positive_value)
   {
-    Boolean expression{true};
+    const Boolean expression{true};
     ASSERT_FALSE(!expression);
   }
 
@@ -175,7 +175,7 @@ namespace
 
   TEST_F(BooleanTest, getValue)
   {
-    Boolean x{2 < 3};
+    const Boolean x{2 < 3};
     ASSERT_TRUE(x.getValue());
   }
 

+ 44 - 44
test/cases/boxing/DoubleTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-14
- * Changed:         2023-03-25
+ * Changed:         2025-12-21
  *
  * */
 
@@ -40,67 +40,67 @@ namespace
 
   TEST_F(DoubleTest, operator_negative)
   {
-    Double x{3.25};
+    const Double x{3.25};
     ASSERT_DOUBLE_EQ(-3.25, -x);
   }
 
   TEST_F(DoubleTest, operator_addition_with_reference)
   {
-    Double x{3.1415};
-    Double y{2.223};
-    Double z{x + y};
+    const Double x{3.1415};
+    const Double y{2.223};
+    const Double z{x + y};
 
     ASSERT_DOUBLE_EQ(5.3645, z.getValue());
   }
 
   TEST_F(DoubleTest, operator_addition_with_value)
   {
-    Double x{3.1415};
+    const Double x{3.1415};
     ASSERT_DOUBLE_EQ(5.3645, x + 2.223);
   }
 
   TEST_F(DoubleTest, operator_multiplication_with_reference)
   {
-    Double x{3.14};
-    Double y{2.22};
-    Double z{x * y};
+    const Double x{3.14};
+    const Double y{2.22};
+    const Double z{x * y};
 
     ASSERT_DOUBLE_EQ(6.9708, z.getValue());
   }
 
   TEST_F(DoubleTest, operator_multiplication_with_value)
   {
-    Double x{3.14};
+    const Double x{3.14};
     ASSERT_DOUBLE_EQ(6.9708, x * 2.22);
   }
 
   TEST_F(DoubleTest, operator_substraction_with_reference)
   {
-    Double x{3.1415};
-    Double y{2.225};
-    Double z{x - y};
+    const Double x{3.1415};
+    const Double y{2.225};
+    const Double z{x - y};
 
     ASSERT_DOUBLE_EQ(0.9165, z.getValue());
   }
 
   TEST_F(DoubleTest, operator_substraction_with_value)
   {
-    Double x{3.1415};
+    const Double x{3.1415};
     ASSERT_DOUBLE_EQ(0.9165, x - 2.225);
   }
 
   TEST_F(DoubleTest, operator_division_with_reference)
   {
-    Double x{2.25};
-    Double y{0.5};
-    Double z{x / y};
+    const Double x{2.25};
+    const Double y{0.5};
+    const Double z{x / y};
 
     ASSERT_DOUBLE_EQ(4.5, z.getValue());
   }
 
   TEST_F(DoubleTest, operator_division_with_value)
   {
-    Double x{2.25};
+    const Double x{2.25};
     ASSERT_DOUBLE_EQ(4.5, x / 0.5);
   }
 
@@ -109,7 +109,7 @@ namespace
   TEST_F(DoubleTest, operator_add_assign_with_reference)
   {
     Double x{2.25000000};
-    Double y{3.14000000};
+    const Double y{3.14000000};
 
     x += y;
     ASSERT_DOUBLE_EQ(5.39000000, x.getValue());
@@ -126,7 +126,7 @@ namespace
   TEST_F(DoubleTest, operator_sub_assign_with_reference)
   {
     Double x{2.25};
-    Double y{0.04};
+    const Double y{0.04};
 
     x -= y;
     ASSERT_DOUBLE_EQ(2.21, x.getValue());
@@ -143,7 +143,7 @@ namespace
   TEST_F(DoubleTest, operator_mul_assign_with_reference)
   {
     Double x{2.25000000};
-    Double y{0.04000000};
+    const Double y{0.04000000};
 
     x *= y;
     ASSERT_DOUBLE_EQ(0.09000000, x.getValue());
@@ -160,7 +160,7 @@ namespace
   TEST_F(DoubleTest, operator_division_assign_with_reference)
   {
     Double x{2.25};
-    Double y{0.05};
+    const Double y{0.05};
 
     x /= y;
     ASSERT_DOUBLE_EQ(45.0, x.getValue());
@@ -178,8 +178,8 @@ namespace
 
   TEST_F(DoubleTest, operator_equals_with_reference)
   {
-    Double x{3.14159};
-    Double y{3.14159};
+    const Double x{3.14159};
+    const Double y{3.14159};
 
     ASSERT_TRUE(x == y);
     ASSERT_TRUE(y == x);
@@ -187,7 +187,7 @@ namespace
 
   TEST_F(DoubleTest, operator_equals_with_value)
   {
-    Double x{3.14159};
+    const Double x{3.14159};
 
     ASSERT_TRUE(x == 3.14159);
     ASSERT_TRUE(3.14159 == x.getValue());
@@ -195,8 +195,8 @@ namespace
 
   TEST_F(DoubleTest, operator_not_equal_with_reference)
   {
-    Double x{3.1415};
-    Double y{3.1414};
+    const Double x{3.1415};
+    const Double y{3.1414};
 
     ASSERT_TRUE(x != y);
     ASSERT_TRUE(y != x);
@@ -204,7 +204,7 @@ namespace
 
   TEST_F(DoubleTest, operator_not_equal_with_value)
   {
-    Double x{3.1415};
+    const Double x{3.1415};
 
     ASSERT_TRUE(x != 3.1414);
     ASSERT_TRUE(3.1414 != x.getValue());
@@ -212,15 +212,15 @@ namespace
 
   TEST_F(DoubleTest, operator_greater_than_with_reference)
   {
-    Double x{3.1415};
-    Double y{3.1414};
+    const Double x{3.1415};
+    const Double y{3.1414};
 
     ASSERT_TRUE(x > y);
   }
 
   TEST_F(DoubleTest, operator_greater_than_with_value)
   {
-    Double x{3.1415};
+    const Double x{3.1415};
     Double y{3.1414};
 
     ASSERT_TRUE(x > 3.1414);
@@ -228,9 +228,9 @@ namespace
 
   TEST_F(DoubleTest, operator_greater_than_equals_with_reference)
   {
-    Double x{3.1414};
-    Double y{3.1414};
-    Double z{3.1415};
+    const Double x{3.1414};
+    const Double y{3.1414};
+    const Double z{3.1415};
 
     ASSERT_TRUE(x >= y);
     ASSERT_TRUE(z >= y);
@@ -238,21 +238,21 @@ namespace
 
   TEST_F(DoubleTest, operator_greater_than_equals_with_value)
   {
-    Double x{3.1414};
+    const Double x{3.1414};
     ASSERT_TRUE(x >= 3.1414);
   }
 
   TEST_F(DoubleTest, operator_less_than_with_reference)
   {
-    Double x{3.1413};
-    Double y{3.1414};
+    const Double x{3.1413};
+    const Double y{3.1414};
 
     ASSERT_TRUE(x < y);
   }
 
   TEST_F(DoubleTest, operator_less_than_with_value)
   {
-    Double x{3.1413};
+    const Double x{3.1413};
     Double y{3.1414};
 
     ASSERT_TRUE(x < 3.1414);
@@ -260,9 +260,9 @@ namespace
 
   TEST_F(DoubleTest, operator_less_than_equals_with_reference)
   {
-    Double x{3.1414};
-    Double y{3.1414};
-    Double z{3.1415};
+    const Double x{3.1414};
+    const Double y{3.1414};
+    const Double z{3.1415};
 
     ASSERT_TRUE(x <= y);
     ASSERT_TRUE(x <= z);
@@ -270,7 +270,7 @@ namespace
 
   TEST_F(DoubleTest, operator_less_than_equals_with_value)
   {
-    Double x{3.1414};
+    const Double x{3.1414};
     ASSERT_TRUE(x <= 3.1414);
   }
 
@@ -320,13 +320,13 @@ namespace
 
   TEST_F(DoubleTest, getEpsilon)
   {
-    Double x{};
+    const Double x{};
     ASSERT_DOUBLE_EQ(0.00000001, x.getEpsilon());
   }
 
   TEST_F(DoubleTest, getValue)
   {
-    Double x{3.1415};
+    const Double x{3.1415};
     ASSERT_DOUBLE_EQ(3.1415, x.getValue());
   }
 

+ 45 - 45
test/cases/boxing/FloatTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-14
- * Changed:         2023-03-25
+ * Changed:         2025-12-21
  *
  * */
 
@@ -40,67 +40,67 @@ namespace
 
   TEST_F(FloatTest, operator_negative)
   {
-    Float x{3.25f};
+    const Float x{3.25f};
     ASSERT_FLOAT_EQ(-3.25f, -x);
   }
 
   TEST_F(FloatTest, operator_addition_with_reference)
   {
-    Float x{3.1415f};
-    Float y{2.223f};
-    Float z{x + y};
+    const Float x{3.1415f};
+    const Float y{2.223f};
+    const Float z{x + y};
 
     ASSERT_FLOAT_EQ(5.3645f, z.getValue());
   }
 
   TEST_F(FloatTest, operator_addition_with_value)
   {
-    Float x{3.1415f};
+    const Float x{3.1415f};
     ASSERT_FLOAT_EQ(5.3645f, x + 2.223f);
   }
 
   TEST_F(FloatTest, operator_multiplication_with_reference)
   {
-    Float x{3.14f};
-    Float y{2.22f};
-    Float z{x * y};
+    const Float x{3.14f};
+    const Float y{2.22f};
+    const Float z{x * y};
 
     ASSERT_FLOAT_EQ(6.9708f, z.getValue());
   }
 
   TEST_F(FloatTest, operator_multiplication_with_value)
   {
-    Float x{3.14f};
+    const Float x{3.14f};
     ASSERT_FLOAT_EQ(6.9708f, x * 2.22f);
   }
 
   TEST_F(FloatTest, operator_substraction_with_reference)
   {
-    Float x{3.1415f};
-    Float y{2.225f};
-    Float z{x - y};
+    const Float x{3.1415f};
+    const Float y{2.225f};
+    const Float z{x - y};
 
     ASSERT_FLOAT_EQ(0.9165f, z.getValue());
   }
 
   TEST_F(FloatTest, operator_substraction_with_value)
   {
-    Float x{3.1415f};
+    const Float x{3.1415f};
     ASSERT_FLOAT_EQ(0.9165f, x - 2.225f);
   }
 
   TEST_F(FloatTest, operator_division_with_reference)
   {
-    Float x{2.25f};
-    Float y{0.5f};
-    Float z{x / y};
+    const Float x{2.25f};
+    const Float y{0.5f};
+    const Float z{x / y};
 
     ASSERT_FLOAT_EQ(4.5f, z.getValue());
   }
 
   TEST_F(FloatTest, operator_division_with_value)
   {
-    Float x{2.25f};
+    const Float x{2.25f};
     ASSERT_FLOAT_EQ(4.5f, x / 0.5f);
   }
 
@@ -109,7 +109,7 @@ namespace
   TEST_F(FloatTest, operator_add_assign_with_reference)
   {
     Float x{2.25f};
-    Float y{3.14f};
+    const Float y{3.14f};
     x += y;
 
     ASSERT_FLOAT_EQ(5.39f, x.getValue());
@@ -126,7 +126,7 @@ namespace
   TEST_F(FloatTest, operator_sub_assign_with_reference)
   {
     Float x{2.25f};
-    Float y{1.14f};
+    const Float y{1.14f};
     x -= y;
 
     ASSERT_FLOAT_EQ(1.11f, x.getValue());
@@ -143,7 +143,7 @@ namespace
   TEST_F(FloatTest, operator_mul_assign_with_reference)
   {
     Float x{2.25f};
-    Float y{0.04f};
+    const Float y{0.04f};
     x *= y;
 
     ASSERT_FLOAT_EQ(0.09f, x.getValue());
@@ -160,7 +160,7 @@ namespace
   TEST_F(FloatTest, operator_division_assign_with_reference)
   {
     Float x{2.25f};
-    Float y{1.5f};
+    const Float y{1.5f};
     x /= y;
 
     ASSERT_FLOAT_EQ(1.5f, x.getValue());
@@ -178,8 +178,8 @@ namespace
 
   TEST_F(FloatTest, operator_equals_with_reference)
   {
-    Float x{3.14159f};
-    Float y{3.14159f};
+    const Float x{3.14159f};
+    const Float y{3.14159f};
 
     ASSERT_TRUE(x == y);
     ASSERT_TRUE(y == x);
@@ -187,14 +187,14 @@ namespace
 
   TEST_F(FloatTest, operator_equals_with_value)
   {
-    Float x{3.14159f};
+    const Float x{3.14159f};
     ASSERT_TRUE(x == 3.14159f);
   }
 
   TEST_F(FloatTest, operator_not_equals_with_reference)
   {
-    Float x{3.1415f};
-    Float y{3.1414f};
+    const Float x{3.1415f};
+    const Float y{3.1414f};
 
     ASSERT_TRUE(x != y);
     ASSERT_TRUE(y != x);
@@ -202,14 +202,14 @@ namespace
 
   TEST_F(FloatTest, operator_not_equals_with_value)
   {
-    Float x{3.1415f};
+    const Float x{3.1415f};
     ASSERT_TRUE(x != 3.1414f);
   }
 
   TEST_F(FloatTest, operator_greater_than_with_reference)
   {
-    Float x{3.1415f};
-    Float y{3.1414f};
+    const Float x{3.1415f};
+    const Float y{3.1414f};
 
     ASSERT_TRUE(x > y);
     ASSERT_TRUE(x > 3.1414f);
@@ -217,15 +217,15 @@ namespace
 
   TEST_F(FloatTest, operator_greater_than_with_value)
   {
-    Float x{3.1415f};
+    const Float x{3.1415f};
     ASSERT_TRUE(x > 3.1414f);
   }
 
   TEST_F(FloatTest, operator_greater_than_equals_with_reference)
   {
-    Float x{3.1414f};
-    Float y{3.1414f};
-    Float z{3.1415f};
+    const Float x{3.1414f};
+    const Float y{3.1414f};
+    const Float z{3.1415f};
 
     ASSERT_TRUE(x >= y);
     ASSERT_TRUE(z >= y);
@@ -233,8 +233,8 @@ namespace
 
   TEST_F(FloatTest, operator_greater_than_equals_with_value)
   {
-    Float x{3.1414f};
-    Float z{3.1415f};
+    const Float x{3.1414f};
+    const Float z{3.1415f};
 
     ASSERT_TRUE(x >= 3.1414f);
     ASSERT_TRUE(z >= 3.1414f);
@@ -242,23 +242,23 @@ namespace
 
   TEST_F(FloatTest, operator_less_than_with_reference)
   {
-    Float x{3.1413f};
-    Float y{3.1414f};
+    const Float x{3.1413f};
+    const Float y{3.1414f};
 
     ASSERT_TRUE(x < y);
   }
 
   TEST_F(FloatTest, operator_less_than_with_value)
   {
-    Float x{3.1413f};
+    const Float x{3.1413f};
     ASSERT_TRUE(x < 3.1414f);
   }
 
   TEST_F(FloatTest, operator_less_than_equals_with_reference)
   {
-    Float x{3.1414f};
-    Float y{3.1414f};
-    Float z{3.1415f};
+    const Float x{3.1414f};
+    const Float y{3.1414f};
+    const Float z{3.1415f};
 
     ASSERT_TRUE(x <= y);
     ASSERT_TRUE(x <= z);
@@ -266,7 +266,7 @@ namespace
 
   TEST_F(FloatTest, operator_less_than_equals_with_value)
   {
-    Float x{3.1414f};
+    const Float x{3.1414f};
 
     ASSERT_TRUE(x <= 3.1414f);
     ASSERT_TRUE(x <= 3.1415f);
@@ -310,13 +310,13 @@ namespace
 
   TEST_F(FloatTest, getEpsilon)
   {
-    Float x{};
+    const Float x{};
     ASSERT_FLOAT_EQ(0.00001f, x.getEpsilon());
   }
 
   TEST_F(FloatTest, getValue)
   {
-    Float x{3.1415f};
+    const Float x{3.1415f};
     ASSERT_FLOAT_EQ(3.1415f, x.getValue());
   }
 

+ 43 - 43
test/cases/boxing/IntegerTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-09
- * Changed:         2023-05-17
+ * Changed:         2025-12-21
  *
  * */
 
@@ -30,7 +30,7 @@ namespace
   TEST_F(IntegerTest, operator_assignment_with_reference)
   {
     Integer x{};
-    Integer y{3};
+    const Integer y{3};
     x = y;
 
     ASSERT_EQ(3, x.getValue());
@@ -48,8 +48,8 @@ namespace
 
   TEST_F(IntegerTest, operator_negative)
   {
-    Integer x{13};
-    Integer y{-13};
+    const Integer x{13};
+    const Integer y{-13};
 
     ASSERT_EQ(-13, -x);
     ASSERT_EQ(13, -y);
@@ -57,57 +57,57 @@ namespace
 
   TEST_F(IntegerTest, operator_add_with_reference)
   {
-    Integer x{13};
-    Integer y{7};
+    const Integer x{13};
+    const Integer y{7};
 
     ASSERT_EQ(20, x + y);
   }
 
   TEST_F(IntegerTest, operator_add_with_value)
   {
-    Integer x{13};
+    const Integer x{13};
     ASSERT_EQ(20, x + 7);
   }
 
   TEST_F(IntegerTest, operator_mul_with_reference)
   {
-    Integer x{3};
-    Integer y{7};
+    const Integer x{3};
+    const Integer y{7};
 
     ASSERT_EQ(21, x * y);
   }
 
   TEST_F(IntegerTest, operator_mul_with_value)
   {
-    Integer x{3};
+    const Integer x{3};
     ASSERT_EQ(21, x * 7);
   }
 
   TEST_F(IntegerTest, operator_sub_with_reference)
   {
-    Integer x{51};
-    Integer y{17};
+    const Integer x{51};
+    const Integer y{17};
 
     ASSERT_EQ(34, x - y);
   }
 
   TEST_F(IntegerTest, operator_sub_with_value)
   {
-    Integer x{51};
+    const Integer x{51};
     ASSERT_EQ(34, x - 17);
   }
 
   TEST_F(IntegerTest, operator_div_with_reference)
   {
-    Integer x{81};
-    Integer y{9};
+    const Integer x{81};
+    const Integer y{9};
 
     ASSERT_EQ(9, x / y);
   }
 
   TEST_F(IntegerTest, operator_div_with_value)
   {
-    Integer x{81};
+    const Integer x{81};
     ASSERT_EQ(9, x / 9);
   }
 
@@ -149,15 +149,15 @@ namespace
 
   TEST_F(IntegerTest, operator_mod_with_reference)
   {
-    Integer x{85};
-    Integer y{9};
+    const Integer x{85};
+    const Integer y{9};
 
     ASSERT_EQ(4, x % y);
   }
 
   TEST_F(IntegerTest, operator_mod_with_value)
   {
-    Integer x{85};
+    const Integer x{85};
     ASSERT_EQ(4, x % 9);
   }
 
@@ -166,7 +166,7 @@ namespace
   TEST_F(IntegerTest, operator_add_assign_with_reference)
   {
     Integer x{4};
-    Integer y{2};
+    const Integer y{2};
     x += y;
 
     ASSERT_EQ(6, x.getValue());
@@ -183,7 +183,7 @@ namespace
   TEST_F(IntegerTest, operator_sub_assign_with_reference)
   {
     Integer x{14};
-    Integer y{2};
+    const Integer y{2};
     x -= y;
 
     ASSERT_EQ(12, x.getValue());
@@ -200,7 +200,7 @@ namespace
   TEST_F(IntegerTest, operator_mul_assign_with_reference)
   {
     Integer x{6};
-    Integer y{3};
+    const Integer y{3};
     x *= y;
 
     ASSERT_EQ(18, x.getValue());
@@ -217,7 +217,7 @@ namespace
   TEST_F(IntegerTest, operator_div_assign_with_reference)
   {
     Integer x{12};
-    Integer y{3};
+    const Integer y{3};
     x /= y;
 
     ASSERT_EQ(4, x.getValue());
@@ -271,86 +271,86 @@ namespace
 
   TEST_F(IntegerTest, operator_equals_with_reference)
   {
-    Integer x{12};
-    Integer y{12};
+    const Integer x{12};
+    const Integer y{12};
 
     ASSERT_TRUE(x == y);
   }
 
   TEST_F(IntegerTest, operator_equals_with_value)
   {
-    Integer x{12};
+    const Integer x{12};
 
     ASSERT_TRUE(x == 12);
   }
 
   TEST_F(IntegerTest, operator_not_equals_with_reference)
   {
-    Integer x{12};
-    Integer y{3};
+    const Integer x{12};
+    const Integer y{3};
 
     ASSERT_TRUE(x != y);
   }
 
   TEST_F(IntegerTest, operator_not_equals_with_value)
   {
-    Integer x{12};
+    const Integer x{12};
     ASSERT_TRUE(x != 3);
   }
 
   TEST_F(IntegerTest, operator_greater_than_with_reference)
   {
-    Integer x{12};
-    Integer y{3};
+    const Integer x{12};
+    const Integer y{3};
 
     ASSERT_TRUE(x > y);
   }
 
   TEST_F(IntegerTest, operator_greater_than_with_value)
   {
-    Integer x{12};
+    const Integer x{12};
     ASSERT_TRUE(x > 3);
   }
 
   TEST_F(IntegerTest, operator_greater_than_equals_with_reference)
   {
-    Integer x{12};
-    Integer y{12};
+    const Integer x{12};
+    const Integer y{12};
 
     ASSERT_TRUE(x >= y);
   }
 
   TEST_F(IntegerTest, operator_greater_than_equals_with_value)
   {
-    Integer x{12};
+    const Integer x{12};
     ASSERT_TRUE(x >= 12);
   }
 
   TEST_F(IntegerTest, operator_less_than_with_reference)
   {
-    Integer x{10};
-    Integer y{12};
+    const Integer x{10};
+    const Integer y{12};
 
     ASSERT_TRUE(x < y);
   }
 
   TEST_F(IntegerTest, operator_less_than_with_value)
   {
-    Integer x{10};
+    const Integer x{10};
     ASSERT_TRUE(x < 12);
   }
 
   TEST_F(IntegerTest, operator_less_than_equals_with_reference)
   {
-    Integer x{10};
-    Integer y{10};
+    const Integer x{10};
+    const Integer y{10};
 
     ASSERT_TRUE(x <= y);
   }
 
   TEST_F(IntegerTest, operator_less_than_equals_with_value)
   {
-    Integer x{10};
+    const Integer x{10};
     ASSERT_TRUE(x <= 10);
   }
 
@@ -358,7 +358,7 @@ namespace
 
   TEST_F(IntegerTest, operator_negation)
   {
-    Integer x{};
+    const Integer x{};
     ASSERT_TRUE(!x);
   }
 
@@ -408,7 +408,7 @@ namespace
 
   TEST_F(IntegerTest, getValue)
   {
-    Integer x{3};
+    const Integer x{3};
     ASSERT_EQ(3, x.getValue());
   }
 

+ 61 - 61
test/cases/boxing/LongTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-17
- * Changed:         2023-05-17
+ * Changed:         2025-12-21
  *
  * */
 
@@ -31,7 +31,7 @@ namespace
   TEST_F(LongTest, operator_assignment_with_reference)
   {
     Long x{13};
-    Long y{3};
+    const Long y{3};
     x = y;
 
     ASSERT_EQ(3, x.getValue());
@@ -40,7 +40,7 @@ namespace
   TEST_F(LongTest, operator_assignment_with_value)
   {
     Long x{13};
-    x = (long_type) 3;
+    x = 3;
 
     ASSERT_EQ(3, x.getValue());
   }
@@ -49,8 +49,8 @@ namespace
 
   TEST_F(LongTest, operator_negative)
   {
-    Long x{13};
-    Long y{-13};
+    const Long x{13};
+    const Long y{-13};
 
     ASSERT_EQ(-13, -x);
     ASSERT_EQ(13, -y);
@@ -58,58 +58,58 @@ namespace
 
   TEST_F(LongTest, operator_add_with_reference)
   {
-    Long x{13};
-    Long y{7};
+    const Long x{13};
+    const Long y{7};
 
     ASSERT_EQ(20, x + y);
   }
 
   TEST_F(LongTest, operator_add_with_value)
   {
-    Long x{13};
-    ASSERT_EQ(20, x + (long_type) 7);
+    const Long x{13};
+    ASSERT_EQ(20, x + 7);
   }
 
   TEST_F(LongTest, operator_mul_with_reference)
   {
-    Long x{3};
-    Long y{7};
+    const Long x{3};
+    const Long y{7};
 
     ASSERT_EQ(21, x * y);
   }
 
   TEST_F(LongTest, operator_mul_with_value)
   {
-    Long x{3};
-    ASSERT_EQ(21, x * (long_type) 7);
+    const Long x{3};
+    ASSERT_EQ(21, x * 7);
   }
 
   TEST_F(LongTest, operator_sub_with_reference)
   {
-    Long x{51};
-    Long y{17};
+    const Long x{51};
+    const Long y{17};
 
     ASSERT_EQ(34, x - y);
   }
 
   TEST_F(LongTest, operator_sub_with_value)
   {
-    Long x{51};
-    ASSERT_EQ(34, x - (long_type) 17);
+    const Long x{51};
+    ASSERT_EQ(34, x - 17);
   }
 
   TEST_F(LongTest, operator_div_with_reference)
   {
-    Long x{81};
-    Long y{9};
+    const Long x{81};
+    const Long y{9};
 
     ASSERT_EQ(9, x / y);
   }
 
   TEST_F(LongTest, operator_div_with_value)
   {
-    Long x{81};
-    ASSERT_EQ(9, x / (long_type) 9);
+    const Long x{81};
+    ASSERT_EQ(9, x / 9);
   }
 
   TEST_F(LongTest, operator_div_by_zero_with_reference)
@@ -138,7 +138,7 @@ namespace
           try
           {
             Long x{9};
-            x = x / (long_type) 0;
+            x = x / 0;
           }
           catch (const IllegalArithmeticOperationException &_exception)
           {
@@ -150,16 +150,16 @@ namespace
 
   TEST_F(LongTest, operator_mod_with_reference)
   {
-    Long x{85};
-    Long y{9};
+    const Long x{85};
+    const Long y{9};
 
     ASSERT_EQ(4, x % y);
   }
 
   TEST_F(LongTest, operator_mod_with_value)
   {
-    Long x{85};
-    ASSERT_EQ(4, x % (long_type) 9);
+    const Long x{85};
+    ASSERT_EQ(4, x % 9);
   }
 
   // compound operators
@@ -167,7 +167,7 @@ namespace
   TEST_F(LongTest, operator_add_equals_with_reference)
   {
     Long x{4};
-    Long y{2};
+    const Long y{2};
     x += y;
 
     ASSERT_EQ(6, x.getValue());
@@ -176,7 +176,7 @@ namespace
   TEST_F(LongTest, operator_add_equals_with_value)
   {
     Long x{4};
-    x += (long_type) 2;
+    x += 2;
 
     ASSERT_EQ(6, x.getValue());
   }
@@ -184,7 +184,7 @@ namespace
   TEST_F(LongTest, operator_sub_equals_with_reference)
   {
     Long x{14};
-    Long y{2};
+    const Long y{2};
     x -= y;
 
     ASSERT_EQ(12, x.getValue());
@@ -193,7 +193,7 @@ namespace
   TEST_F(LongTest, operator_sub_equals_with_value)
   {
     Long x{14};
-    x -= (long_type) 2;
+    x -= 2;
 
     ASSERT_EQ(12, x.getValue());
   }
@@ -201,7 +201,7 @@ namespace
   TEST_F(LongTest, operator_mul_equals_with_reference)
   {
     Long x{6};
-    Long y{3};
+    const Long y{3};
     x *= y;
 
     ASSERT_EQ(18, x.getValue());
@@ -210,7 +210,7 @@ namespace
   TEST_F(LongTest, operator_mul_equals_with_value)
   {
     Long x{6};
-    x *= (long_type) 3;
+    x *= 3;
 
     ASSERT_EQ(18, x.getValue());
   }
@@ -218,7 +218,7 @@ namespace
   TEST_F(LongTest, operator_div_equals_with_reference)
   {
     Long x{12};
-    Long y{3};
+    const Long y{3};
     x /= y;
 
     ASSERT_EQ(4, x.getValue());
@@ -227,7 +227,7 @@ namespace
   TEST_F(LongTest, operator_div_equals_with_value)
   {
     Long x{12};
-    x /= (long_type) 3;
+    x /= 3;
 
     ASSERT_EQ(4, x.getValue());
   }
@@ -258,7 +258,7 @@ namespace
           try
           {
             Long x{9};
-            x = x /= (long_type) 0;
+            x = x /= 0;
           }
           catch (const IllegalArithmeticOperationException &_exception)
           {
@@ -272,95 +272,95 @@ namespace
 
   TEST_F(LongTest, operator_equals_with_reference)
   {
-    Long x{12};
-    Long y{12};
+    const Long x{12};
+    const Long y{12};
 
     ASSERT_TRUE(x == y);
   }
 
   TEST_F(LongTest, operator_equals_with_value)
   {
-    Long x{12};
-    ASSERT_TRUE(x == (long_type) 12);
+    const Long x{12};
+    ASSERT_TRUE(x == 12);
   }
 
   TEST_F(LongTest, operator_not_equals_with_reference)
   {
-    Long x{12};
-    Long y{3};
+    const Long x{12};
+    const Long y{3};
 
     ASSERT_TRUE(x != y);
   }
 
   TEST_F(LongTest, operator_not_equals_with_value)
   {
-    Long x{12};
-    ASSERT_TRUE(x != (long_type) 3);
+    const Long x{12};
+    ASSERT_TRUE(x != 3);
   }
 
   TEST_F(LongTest, operator_greater_than_with_reference)
   {
-    Long x{12};
-    Long y{3};
+    const Long x{12};
+    const Long y{3};
 
     ASSERT_TRUE(x > y);
   }
 
   TEST_F(LongTest, operator_greater_than_with_value)
   {
-    Long x{12};
-    ASSERT_TRUE(x > (long_type) 3);
+    const Long x{12};
+    ASSERT_TRUE(x > 3);
   }
 
   TEST_F(LongTest, operator_greater_than_equals_with_reference)
   {
-    Long x{12};
-    Long y{12};
+    const Long x{12};
+    const Long y{12};
 
     ASSERT_TRUE(x >= y);
   }
 
   TEST_F(LongTest, operator_greater_than_equals_with_value)
   {
-    Long x{12};
-    ASSERT_TRUE(x >= (long_type) 12);
+    const Long x{12};
+    ASSERT_TRUE(x >= 12);
   }
 
   TEST_F(LongTest, operator_less_than_with_reference)
   {
-    Long x{10};
-    Long y{12};
+    const Long x{10};
+    const Long y{12};
 
     ASSERT_TRUE(x < y);
   }
 
   TEST_F(LongTest, operator_less_than_with_value)
   {
-    Long x{10};
+    const Long x{10};
     Long y{12};
 
-    ASSERT_TRUE(x < (long_type) 12);
+    ASSERT_TRUE(x < 12);
   }
 
   TEST_F(LongTest, operator_less_than_equals_with_reference)
   {
-    Long x{10};
-    Long y{10};
+    const Long x{10};
+    const Long y{10};
 
     ASSERT_TRUE(x <= y);
   }
 
   TEST_F(LongTest, operator_less_than_equals_with_value)
   {
-    Long x{10};
-    ASSERT_TRUE(x <= (long_type) 10);
+    const Long x{10};
+    ASSERT_TRUE(x <= 10);
   }
 
   // logical operators
 
   TEST_F(LongTest, operator_negation)
   {
-    Long x{};
+    const Long x{};
     ASSERT_TRUE(!x);
   }
 
@@ -410,7 +410,7 @@ namespace
 
   TEST_F(LongTest, getValue)
   {
-    Long x{3};
+    const Long x{3};
     ASSERT_EQ(3, x.getValue());
   }
 

+ 11 - 11
test/cases/boxing/StringTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-14
- * Changed:         2023-03-25
+ * Changed:         2025-12-21
  *
  * */
 
@@ -39,7 +39,7 @@ namespace
   TEST_F(StringTest, operator_add)
   {
     String greetings{"Hello! "};
-    String question{"How are you? "};
+    const String question{"How are you? "};
     const string &answer = "I'm good by the way!";
 
     greetings = greetings + question + answer;
@@ -60,7 +60,7 @@ namespace
   TEST_F(StringTest, operator_add_assign_with_reference)
   {
     String text{};
-    String hello{"Hi!"};
+    const String hello{"Hi!"};
 
     text += hello;
     ASSERT_STREQ("Hi!", text.toString().c_str());
@@ -78,8 +78,8 @@ namespace
 
   TEST_F(StringTest, operator_equals_with_reference)
   {
-    String text{"Hi!"};
-    String hello{"Hi!"};
+    const String text{"Hi!"};
+    const String hello{"Hi!"};
 
     ASSERT_TRUE(text == hello);
     ASSERT_TRUE(hello == text);
@@ -87,21 +87,21 @@ namespace
 
   TEST_F(StringTest, operator_equals_with_value)
   {
-    String hello{"Hi!"};
+    const String hello{"Hi!"};
     ASSERT_TRUE(hello == "Hi!");
   }
 
   TEST_F(StringTest, operator_not_equals_with_reference)
   {
-    String text{"Hi!"};
-    String hello{"Hello!"};
+    const String text{"Hi!"};
+    const String hello{"Hello!"};
 
     ASSERT_TRUE(text != hello);
   }
 
   TEST_F(StringTest, operator_not_equals_with_value)
   {
-    String text{"Hi!"};
+    const String text{"Hi!"};
     ASSERT_TRUE(text != "Hello!");
   }
 
@@ -157,8 +157,8 @@ namespace
 
   TEST_F(StringTest, equalsIgnoreCase)
   {
-    String text{"Hello!"};
-    String hello{"HeLLo!"};
+    const String text{"Hello!"};
+    const String hello{"HeLLo!"};
 
     ASSERT_TRUE(text.equalsIgnoreCase(hello));
     ASSERT_TRUE(text.equalsIgnoreCase("HeLLO!"));

+ 3 - 3
test/cases/core/ClassTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-16
- * Changed:         2023-05-15
+ * Changed:         2025-12-21
  *
  * */
 
@@ -46,13 +46,13 @@ namespace
 
   TEST_F(ClassTest, destructor)
   {
-    auto object = make_shared<ClassWrapper>();
+    const auto object = make_shared<ClassWrapper>();
     EXPECT_CALL(*object, Die());
   }
 
   TEST_F(ClassTest, getClassName)
   {
-    Class object{"Class"};
+    const Class object{"Class"};
     ASSERT_STREQ("Class", object.getClassName().c_str());
   }
 

+ 4 - 4
test/cases/core/VersionTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-09-28
- * Changed:         2023-03-25
+ * Changed:         2025-12-21
  *
  * */
 
@@ -45,19 +45,19 @@ namespace
 
   TEST_F(VersionTest, getMajorVersion)
   {
-    Version version{13, 2, 4};
+    const Version version{13, 2, 4};
     ASSERT_EQ(13, version.getMajorVersion());
   }
 
   TEST_F(VersionTest, getMinorVersion)
   {
-    Version version{13, 2, 4};
+    const Version version{13, 2, 4};
     ASSERT_EQ(2, version.getMinorVersion());
   }
 
   TEST_F(VersionTest, getPatchVersion)
   {
-    Version version{13, 2, 4};
+    const Version version{13, 2, 4};
     ASSERT_EQ(4, version.getPatchVersion());
   }
 

+ 3 - 3
test/cases/core/exception/ExceptionMessageTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-07
-* Changed:         2023-05-22
+* Changed:         2025-12-21
 *
 * */
 
@@ -27,9 +27,9 @@ namespace
 
   TEST_F(ExceptionMessageTest, toCharacterPointer)
   {
-    string text = "hello!";
+    const string text = "hello!";
     ExceptionMessage message{text};
-    string_view characterField = message.toCharacterPointer();
+    const string_view characterField = message.toCharacterPointer();
 
     ASSERT_STREQ(text.c_str(), characterField.data());
   }

+ 4 - 4
test/cases/event/EventListenerTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2024-05-16
-* Changed:         2024-05-30
+* Changed:         2025-12-21
 *
 * */
 
@@ -82,7 +82,7 @@ namespace
   TEST_F(EventListenerTest, subscribe_second_time)
   {
     auto myButton = make_shared<Button>();
-    auto eventManager = make_shared<EventManager>();
+    const auto eventManager = make_shared<EventManager>();
 
     ASSERT_TRUE(myButton->subscribe(OnClickEvent().supervisedBy(eventManager), [myButton]() mutable { myButton->onClickEvent(); }));
     ASSERT_FALSE(myButton->subscribe(OnClickEvent().supervisedBy(eventManager), [myButton]() mutable { myButton->onClickEvent(); }));
@@ -113,7 +113,7 @@ namespace
   TEST_F(EventListenerTest, unsubscribe)
   {
     auto myButton = make_shared<Button>();
-    auto eventManager = make_shared<EventManager>();
+    const auto eventManager = make_shared<EventManager>();
 
     ASSERT_TRUE(myButton->subscribe(OnClickEvent().supervisedBy(eventManager), [myButton]() mutable { myButton->onClickEvent(); }));
     ASSERT_TRUE(myButton->unsubscribe(OnClickEvent().supervisedBy(eventManager)));
@@ -122,7 +122,7 @@ namespace
   TEST_F(EventListenerTest, unsubscribe_second_time)
   {
     auto myButton = make_shared<Button>();
-    auto eventManager = make_shared<EventManager>();
+    const auto eventManager = make_shared<EventManager>();
 
     ASSERT_TRUE(myButton->subscribe(OnClickEvent().supervisedBy(eventManager), [myButton]() mutable { myButton->onClickEvent(); }));
     ASSERT_TRUE(myButton->unsubscribe(OnClickEvent().supervisedBy(eventManager)));

+ 4 - 4
test/cases/event/EventManagerTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2024-05-16
-* Changed:         2024-05-30
+* Changed:         2025-12-21
 *
 * */
 
@@ -56,7 +56,7 @@ namespace
 
   TEST_F(EventManagerTest, holdsListenerForEvent)
   {
-    auto eventManager = make_shared<EventManager>();
+    const auto eventManager = make_shared<EventManager>();
     ASSERT_FALSE(eventManager->holdsListenerForEvent(1, OnClickEvent()));
   }
 
@@ -126,7 +126,7 @@ namespace
 
   TEST_F(EventManagerTest, subscribeListenerForEvent)
   {
-    auto eventManager = make_shared<EventManager>();
+    const auto eventManager = make_shared<EventManager>();
     auto myButton = make_shared<Button>();
 
     eventManager->subscribeListenerForEvent(myButton, OnClickEvent(), [myButton]() mutable { myButton->onClickEvent(); });
@@ -135,7 +135,7 @@ namespace
 
   TEST_F(EventManagerTest, unsubscribeListenerForEvent)
   {
-    auto eventManager = make_shared<EventManager>();
+    const auto eventManager = make_shared<EventManager>();
     auto myButton = make_shared<Button>();
 
     eventManager->subscribeListenerForEvent(myButton, OnClickEvent(), [myButton]() mutable { myButton->onClickEvent(); });

+ 2 - 2
test/cases/event/EventTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2024-05-16
-* Changed:         2024-05-30
+* Changed:         2025-12-21
 *
 * */
 
@@ -39,7 +39,7 @@ namespace
 
   TEST_F(EventTest, of)
   {
-    auto event = Event("TmpEvent").supervisedBy(make_shared<EventManager>());
+    const auto event = Event("TmpEvent").supervisedBy(make_shared<EventManager>());
 
     ASSERT_STREQ("TmpEvent", event.getClassName().c_str());
     ASSERT_TRUE(event.getManager() != nullptr);

+ 25 - 25
test/cases/io/FileTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-15
- * Changed:         2023-04-13
+ * Changed:         2025-12-21
  *
  * */
 
@@ -54,8 +54,8 @@ namespace
 
   TEST_F(FileTest, operator_not_equals)
   {
-    File file{this->fileLocation};
-    File file2{TestHelper::getResourcesFolderLocation() + "app.exe"};
+    const File file{this->fileLocation};
+    const File file2{TestHelper::getResourcesFolderLocation() + "app.exe"};
 
     ASSERT_TRUE(file != file2);
     ASSERT_TRUE(file2 != file);
@@ -69,7 +69,7 @@ namespace
     File executableFile{TestHelper::getResourcesFolderLocation() + "app.exe"};
 #endif
 #if defined(unix) || defined(__APPLE__)
-    File executableFile{TestHelper::getResourcesFolderLocation() + "app"};
+    const File executableFile{TestHelper::getResourcesFolderLocation() + "app"};
 #endif
 
     ASSERT_TRUE(executableFile.canExecute());
@@ -77,13 +77,13 @@ namespace
 
   TEST_F(FileTest, canExecute_not_executable)
   {
-    File file{this->fileLocation};
+    const File file{this->fileLocation};
     ASSERT_FALSE(file.canExecute());
   }
 
   TEST_F(FileTest, canRead)
   {
-    File readableFile{this->fileLocation};
+    const File readableFile{this->fileLocation};
     ASSERT_TRUE(readableFile.canRead());
   }
 
@@ -107,14 +107,14 @@ namespace
 
   TEST_F(FileTest, canWrite)
   {
-    File readableFile{this->fileLocation};
+    const File readableFile{this->fileLocation};
     ASSERT_TRUE(readableFile.canWrite());
   }
 
   TEST_F(FileTest, canWrite_not_writable)
   {
 #if defined(unix) || defined(__APPLE__)
-    File noWritableFile{TestHelper::getResourcesFolderLocation() + "no-writable.txt"};
+    const File noWritableFile{TestHelper::getResourcesFolderLocation() + "no-writable.txt"};
     ASSERT_FALSE(noWritableFile.canWrite());
 #endif
 #ifdef _WIN32
@@ -125,7 +125,7 @@ namespace
 
   TEST_F(FileTest, createNewFile)
   {
-    File file{TestHelper::getResourcesFolderLocation() + "tmp.txt"};
+    const File file{TestHelper::getResourcesFolderLocation() + "tmp.txt"};
     ASSERT_FALSE(file.exists());
 
     file.createNewFile();
@@ -159,8 +159,8 @@ namespace
 
   TEST_F(FileTest, exists)
   {
-    File file{this->fileLocation};
-    File directory{TestHelper::getResourcesFolderLocation()};
+    const File file{this->fileLocation};
+    const File directory{TestHelper::getResourcesFolderLocation()};
 
     ASSERT_TRUE(file.exists());
     ASSERT_TRUE(directory.exists());
@@ -168,7 +168,7 @@ namespace
 
   TEST_F(FileTest, exists_does_not_exist)
   {
-    File file{TestHelper::getResourcesFolderLocation() + "bla.txt"};
+    const File file{TestHelper::getResourcesFolderLocation() + "bla.txt"};
     ASSERT_FALSE(file.exists());
   }
 
@@ -199,33 +199,33 @@ namespace
 
   TEST_F(FileTest, getParent)
   {
-    File file{this->fileLocation};
+    const File file{this->fileLocation};
     ASSERT_STREQ(TestHelper::getResourcesFolderLocation().c_str(), file.getParent().c_str());
   }
 
   TEST_F(FileTest, getWorkingDirectory)
   {
-    string workingDirectory = File::getWorkingDirectory();
+    const string workingDirectory = File::getWorkingDirectory();
     ASSERT_FALSE(workingDirectory.empty());
   }
 
   TEST_F(FileTest, getSize)
   {
-    File file{this->fileLocation};
-    size_t size = file.getSize();
+    const File file{this->fileLocation};
+    const size_t size = file.getSize();
 
     ASSERT_TRUE(size == 7 || size == 8); // different OS specific new lines
   }
 
   TEST_F(FileTest, isDirectory)
   {
-    File directory{TestHelper::getResourcesFolderLocation()};
+    const File directory{TestHelper::getResourcesFolderLocation()};
     ASSERT_TRUE(directory.isDirectory());
   }
 
   TEST_F(FileTest, isDirectory_is_a_file)
   {
-    File file{this->fileLocation};
+    const File file{this->fileLocation};
     ASSERT_FALSE(file.isDirectory());
   }
 
@@ -233,22 +233,22 @@ namespace
   {
     const char separator = FilePathSeparator::get();
 
-    File file{this->fileLocation};
+    const File file{this->fileLocation};
     ASSERT_TRUE(file.isFile());
 
-    File file2{TestHelper::getResourcesFolderLocation() + "list-test" + separator + "bla.txt"};
+    const File file2{TestHelper::getResourcesFolderLocation() + "list-test" + separator + "bla.txt"};
     ASSERT_TRUE(file2.isFile());
   }
 
   TEST_F(FileTest, isFile_is_a_directory)
   {
-    File directory{TestHelper::getResourcesFolderLocation()};
+    const File directory{TestHelper::getResourcesFolderLocation()};
     ASSERT_FALSE(directory.isFile());
   }
 
   TEST_F(FileTest, lastModified)
   {
-    File file{this->fileLocation};
+    const File file{this->fileLocation};
     ASSERT_TRUE(file.lastModified() > 1590000000);
   }
 
@@ -300,7 +300,7 @@ namespace
 
   TEST_F(FileTest, makeDirectory)
   {
-    File directory{TestHelper::getResourcesFolderLocation() + "testDir"};
+    const File directory{TestHelper::getResourcesFolderLocation() + "testDir"};
     ASSERT_FALSE(directory.exists());
 
     directory.makeDirectory();
@@ -353,8 +353,8 @@ namespace
 
   TEST_F(FileTest, remove)
   {
-    string fileName = TestHelper::getResourcesFolderLocation() + "removable-file.txt";
-    File file{fileName};
+    const string fileName = TestHelper::getResourcesFolderLocation() + "removable-file.txt";
+    const File file{fileName};
     file.createNewFile();
 
     ASSERT_TRUE(file.exists());

+ 6 - 6
test/cases/io/StorableFileTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-19
- * Changed:         2023-03-25
+ * Changed:         2025-12-21
  *
  * */
 
@@ -33,17 +33,17 @@ namespace
 
   TEST_F(StorableFileTest, getFile)
   {
-    StorableFile storableFile{this->fileLocation};
+    const StorableFile storableFile{this->fileLocation};
     ASSERT_STREQ(this->fileLocation.c_str(), storableFile.getFile()->getAbsoluteFilePath().c_str());
   }
 
   TEST_F(StorableFileTest, load)
   {
     StorableFile storableFile{this->fileLocation};
-    byte_field content = storableFile.load();
+    const byte_field content = storableFile.load();
 
-    string expectedUnix = "Hello!" + NewLine::getUnixNewLine();
-    string expectedWindows = "Hello!" + NewLine::getWindowsNewLine();
+    const string expectedUnix = "Hello!" + NewLine::getUnixNewLine();
+    const string expectedWindows = "Hello!" + NewLine::getWindowsNewLine();
 
     ASSERT_TRUE(content == expectedUnix || content == expectedWindows);
   }
@@ -60,7 +60,7 @@ namespace
 
     // reset
 
-    string anotherFileLocation = TestHelper::getResourcesFolderLocation() + "list-test/bla.txt";
+    const string anotherFileLocation = TestHelper::getResourcesFolderLocation() + "list-test/bla.txt";
     storableFile.reset(anotherFileLocation);
     content = storableFile.load();
 

+ 12 - 12
test/cases/io/logging/LogLevelTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-05-02
- * Changed:         2023-03-25
+ * Changed:         2025-12-21
  *
  * */
 
@@ -28,13 +28,13 @@ namespace
 
   TEST_F(LogLevelTest, constructor_with_log_level_value_parameter)
   {
-    LogLevel logLevel{LogLevelValue::INFO};
+    const LogLevel logLevel{LogLevelValue::INFO};
     ASSERT_EQ(LogLevelValue::INFO, logLevel.getValue());
   }
 
   TEST_F(LogLevelTest, constructor_default)
   {
-    LogLevel logLevel{};
+    const LogLevel logLevel{};
     ASSERT_EQ(LogLevelValue::FATAL, logLevel.getValue());
   }
 
@@ -48,7 +48,7 @@ namespace
 
   TEST_F(LogLevelTest, operator_lessThan)
   {
-    LogLevel logLevel{}; // default is FATAL
+    const LogLevel logLevel{}; // default is FATAL
 
     ASSERT_TRUE(logLevel < LogLevelValue::ERR);
     ASSERT_TRUE(logLevel < LogLevelValue::WARN);
@@ -59,7 +59,7 @@ namespace
 
   TEST_F(LogLevelTest, operator_lessThan_not_less_than)
   {
-    LogLevel logLevel{LogLevelValue::DEBUG};
+    const LogLevel logLevel{LogLevelValue::DEBUG};
     ASSERT_FALSE(logLevel < LogLevelValue::ERR);
   }
 
@@ -77,43 +77,43 @@ namespace
 
   TEST_F(LogLevelTest, operator_less_than_equals_not_less_than_equals)
   {
-    LogLevel logLevel{LogLevelValue::DEBUG};
+    const LogLevel logLevel{LogLevelValue::DEBUG};
     ASSERT_FALSE(logLevel <= LogLevelValue::ERR);
   }
 
   TEST_F(LogLevelTest, operator_greater_than)
   {
-    LogLevel logLevel{LogLevelValue::DEBUG};
+    const LogLevel logLevel{LogLevelValue::DEBUG};
     ASSERT_TRUE(logLevel > LogLevelValue::ERR);
   }
 
   TEST_F(LogLevelTest, operator_greater_than_not_greater_than)
   {
-    LogLevel logLevel{LogLevelValue::DEBUG};
+    const LogLevel logLevel{LogLevelValue::DEBUG};
     ASSERT_FALSE(logLevel > LogLevelValue::DEBUG);
   }
 
   TEST_F(LogLevelTest, operator_greater_than_equals)
   {
-    LogLevel logLevel{LogLevelValue::DEBUG};
+    const LogLevel logLevel{LogLevelValue::DEBUG};
     ASSERT_TRUE(logLevel >= LogLevelValue::ERR);
   }
 
   TEST_F(LogLevelTest, operator_greater_than_equals_not_greater_than_equals)
   {
-    LogLevel logLevel{};
+    const LogLevel logLevel{};
     ASSERT_FALSE(logLevel >= LogLevelValue::ERR);
   }
 
   TEST_F(LogLevelTest, operator_equals)
   {
-    LogLevel logLevel{LogLevelValue::DEBUG};
+    const LogLevel logLevel{LogLevelValue::DEBUG};
     ASSERT_TRUE(logLevel == LogLevelValue::DEBUG);
   }
 
   TEST_F(LogLevelTest, operator_equals_not_equals)
   {
-    LogLevel logLevel{LogLevelValue::TRACE};
+    const LogLevel logLevel{LogLevelValue::TRACE};
     ASSERT_FALSE(logLevel == LogLevelValue::DEBUG);
   }
 

+ 37 - 37
test/cases/io/logging/LoggerTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-20
- * Changed:         2023-04-12
+ * Changed:         2025-12-21
  *
  * */
 
@@ -38,7 +38,7 @@ namespace
 
       static shared_ptr<IWriter> createFileLogger(const string &_logName)
       {
-        string path = TestHelper::getResourcesFolderLocation() + _logName;
+        const string path = TestHelper::getResourcesFolderLocation() + _logName;
         File file{path};
 
         if (!file.exists())
@@ -82,8 +82,8 @@ namespace
   {
     // write to log file
 
-    string logName = "output-debug.log";
-    shared_ptr<IWriter> writer = createFileLogger(logName);
+    const string logName = "output-debug.log";
+    const shared_ptr<IWriter> writer = createFileLogger(logName);
 
     Logger logger{writer};
     logger.setLogLevel(LogLevelValue::DEBUG);
@@ -99,7 +99,7 @@ namespace
     // get content and check
 
     dynamic_pointer_cast<FileOutputStream>(writer)->close();
-    string content = getContentFromLogFile(logName);
+    const string content = getContentFromLogFile(logName);
 
     ASSERT_TRUE(content.find("1. line!") != string::npos);
     ASSERT_TRUE(content.find("2. line!") != string::npos);
@@ -113,8 +113,8 @@ namespace
   {
     // write to log file
 
-    string logName = "output-error.log";
-    shared_ptr<IWriter> writer = createFileLogger(logName);
+    const string logName = "output-error.log";
+    const shared_ptr<IWriter> writer = createFileLogger(logName);
 
     Logger logger{writer};
     logger.setLogLevel(LogLevelValue::ERR);
@@ -130,7 +130,7 @@ namespace
     // get content and check
 
     dynamic_pointer_cast<FileOutputStream>(writer)->close();
-    string content = getContentFromLogFile(logName);
+    const string content = getContentFromLogFile(logName);
 
     ASSERT_FALSE(content.find("1. line!") != string::npos);
     ASSERT_FALSE(content.find("2. line!") != string::npos);
@@ -144,8 +144,8 @@ namespace
   {
     // write to log file
 
-    string logName = "output-fatal.log";
-    shared_ptr<IWriter> writer = createFileLogger(logName);
+    const string logName = "output-fatal.log";
+    const shared_ptr<IWriter> writer = createFileLogger(logName);
 
     Logger logger{writer};
     logger.setLogLevel(LogLevelValue::FATAL);
@@ -161,7 +161,7 @@ namespace
     // get content and check
 
     dynamic_pointer_cast<FileOutputStream>(writer)->close();
-    string content = getContentFromLogFile(logName);
+    const string content = getContentFromLogFile(logName);
 
     ASSERT_FALSE(content.find("1. line!") != string::npos);
     ASSERT_FALSE(content.find("2. line!") != string::npos);
@@ -173,14 +173,14 @@ namespace
 
   TEST_F(LoggerTest, getLogLevel)
   {
-    Logger logger{createFileLogger("output.log")};
+    const Logger logger{createFileLogger("output.log")};
     ASSERT_EQ(LogLevelValue::INFO, logger.getLogLevel().getValue());
   }
 
   TEST_F(LoggerTest, hideLogLevel)
   {
-    string logName = "hide-log-level-output-fatal.log";
-    shared_ptr<IWriter> writer = createFileLogger(logName);
+    const string logName = "hide-log-level-output-fatal.log";
+    const shared_ptr<IWriter> writer = createFileLogger(logName);
 
     Logger logger{writer};
     logger.setLogLevel(LogLevelValue::DEBUG);
@@ -190,15 +190,15 @@ namespace
     // get content and check
 
     dynamic_pointer_cast<FileOutputStream>(writer)->close();
-    string content = getContentFromLogFile(logName);
+    const string content = getContentFromLogFile(logName);
 
     ASSERT_TRUE(content.find("FATAL") == string::npos);
   }
 
   TEST_F(LoggerTest, hideTimestamp)
   {
-    string logName = "hide-time-stamp-output-fatal.log";
-    shared_ptr<IWriter> writer = createFileLogger(logName);
+    const string logName = "hide-time-stamp-output-fatal.log";
+    const shared_ptr<IWriter> writer = createFileLogger(logName);
 
     Logger logger{writer};
     logger.setLogLevel(LogLevelValue::DEBUG);
@@ -208,16 +208,16 @@ namespace
     // get content and check
 
     dynamic_pointer_cast<FileOutputStream>(writer)->close();
-    string content = getContentFromLogFile(logName);
+    const string content = getContentFromLogFile(logName);
 
     ASSERT_TRUE(content.find('[') == string::npos);
   }
 
   TEST_F(LoggerTest, hideInformation)
   {
-    string logName = "hide-info-output-fatal.log";
-    shared_ptr<IWriter> writer = createFileLogger(logName);
-    string message = "test message";
+    const string logName = "hide-info-output-fatal.log";
+    const shared_ptr<IWriter> writer = createFileLogger(logName);
+    const string message = "test message";
 
     Logger logger{writer};
     logger.setLogLevel(LogLevelValue::DEBUG);
@@ -228,7 +228,7 @@ namespace
     // get content and check
 
     dynamic_pointer_cast<FileOutputStream>(writer)->close();
-    string content = getContentFromLogFile(logName);
+    const string content = getContentFromLogFile(logName);
 
     ASSERT_STREQ(string(message + NewLine::get()).c_str(), content.c_str());
   }
@@ -237,8 +237,8 @@ namespace
   {
     // write to log file
 
-    string logName = "output-info.log";
-    shared_ptr<IWriter> writer = createFileLogger(logName);
+    const string logName = "output-info.log";
+    const shared_ptr<IWriter> writer = createFileLogger(logName);
 
     Logger logger{writer};
     logger.setLogLevel(LogLevelValue::INFO);
@@ -254,7 +254,7 @@ namespace
     // get content and check
 
     dynamic_pointer_cast<FileOutputStream>(writer)->close();
-    string content = getContentFromLogFile(logName);
+    const string content = getContentFromLogFile(logName);
 
     ASSERT_TRUE(content.find("1. line!") != string::npos);
     ASSERT_TRUE(content.find("2. line!") != string::npos);
@@ -274,8 +274,8 @@ namespace
 
   TEST_F(LoggerTest, showLogLevel)
   {
-    string logName = "show-log-level-output-fatal.log";
-    shared_ptr<IWriter> writer = createFileLogger(logName);
+    const string logName = "show-log-level-output-fatal.log";
+    const shared_ptr<IWriter> writer = createFileLogger(logName);
 
     Logger logger{writer};
     logger.setLogLevel(LogLevelValue::DEBUG);
@@ -285,15 +285,15 @@ namespace
     // get content and check
 
     dynamic_pointer_cast<FileOutputStream>(writer)->close();
-    string content = getContentFromLogFile(logName);
+    const string content = getContentFromLogFile(logName);
 
     ASSERT_TRUE(content.find("FATAL") != string::npos);
   }
 
   TEST_F(LoggerTest, showTimestamp)
   {
-    string logName = "hide-time-stamp-output-fatal.log";
-    shared_ptr<IWriter> writer = createFileLogger(logName);
+    const string logName = "hide-time-stamp-output-fatal.log";
+    const shared_ptr<IWriter> writer = createFileLogger(logName);
 
     Logger logger{writer};
     logger.setLogLevel(LogLevelValue::DEBUG);
@@ -303,7 +303,7 @@ namespace
     // get content and check
 
     dynamic_pointer_cast<FileOutputStream>(writer)->close();
-    string content = getContentFromLogFile(logName);
+    const string content = getContentFromLogFile(logName);
 
     ASSERT_TRUE(content.find('[') != string::npos);
   }
@@ -312,8 +312,8 @@ namespace
   {
     // write to log file
 
-    string logName = "output-trace.log";
-    shared_ptr<IWriter> writer = createFileLogger(logName);
+    const string logName = "output-trace.log";
+    const shared_ptr<IWriter> writer = createFileLogger(logName);
 
     Logger logger{writer};
     logger.setLogLevel(LogLevelValue::TRACE);
@@ -329,7 +329,7 @@ namespace
     // get content and check
 
     dynamic_pointer_cast<FileOutputStream>(writer)->close();
-    string content = getContentFromLogFile(logName);
+    const string content = getContentFromLogFile(logName);
 
     ASSERT_TRUE(content.find("1. line!") != string::npos);
     ASSERT_TRUE(content.find("2. line!") != string::npos);
@@ -343,8 +343,8 @@ namespace
   {
     // write to log file
 
-    string logName = "output-warn.log";
-    shared_ptr<IWriter> writer = createFileLogger(logName);
+    const string logName = "output-warn.log";
+    const shared_ptr<IWriter> writer = createFileLogger(logName);
 
     Logger logger{writer};
     logger.setLogLevel(LogLevelValue::WARN);
@@ -360,7 +360,7 @@ namespace
     // get content and check
 
     dynamic_pointer_cast<FileOutputStream>(writer)->close();
-    string content = getContentFromLogFile(logName);
+    const string content = getContentFromLogFile(logName);
 
     ASSERT_TRUE(content.find("1. line!") != string::npos);
     ASSERT_TRUE(content.find("2. line!") != string::npos);

+ 3 - 3
test/cases/io/section-pair/SectionPairMessageFormatterTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-22
-* Changed:         2023-03-25
+* Changed:         2025-12-21
 *
 * */
 
@@ -51,8 +51,8 @@ namespace
 
   TEST_P(SectionPairMessageFormatterTest, getFormattedMessage)
   {
-    string expected = GetParam().at(0);
-    string actual = SectionPairMessageFormatter::getFormattedMessage(GetParam().at(1));
+    const string expected = GetParam().at(0);
+    const string actual = SectionPairMessageFormatter::getFormattedMessage(GetParam().at(1));
 
     ASSERT_STREQ(expected.c_str(), actual.c_str());
   }

+ 2 - 2
test/cases/io/section-pair/evaluator/SectionPairIdentifierArgumentEvaluatorTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-09
-* Changed:         2023-05-18
+* Changed:         2025-12-21
 *
 * */
 
@@ -41,7 +41,7 @@ namespace
 
   TEST_F(SectionPairIdentifierArgumentEvaluatorTest, getClassName)
   {
-    auto evaluator = make_shared<SectionPairIdentifierArgumentEvaluator>("_id");
+    const auto evaluator = make_shared<SectionPairIdentifierArgumentEvaluator>("_id");
     ASSERT_STREQ("SectionPairIdentifierArgumentEvaluator", evaluator->getClassName().c_str());
   }
 

+ 2 - 2
test/cases/io/section-pair/evaluator/SectionPairRowArgumentEvaluatorTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-20
-* Changed:         2023-05-18
+* Changed:         2025-12-21
 *
 * */
 
@@ -42,7 +42,7 @@ namespace
 
   TEST_F(SectionPairRowArgumentEvaluatorTest, getClassName)
   {
-    auto evaluator = make_shared<SectionPairRowArgumentEvaluator>("empty");
+    const auto evaluator = make_shared<SectionPairRowArgumentEvaluator>("empty");
     ASSERT_STREQ("SectionPairRowArgumentEvaluator", evaluator->getClassName().c_str());
   }
 

+ 2 - 2
test/cases/io/section-pair/evaluator/SectionPairRowListValueArgumentEvaluatorTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-20
-* Changed:         2023-05-18
+* Changed:         2025-12-21
 *
 * */
 
@@ -42,7 +42,7 @@ namespace
 
   TEST_F(SectionPairRowListValueArgumentEvaluatorTest, getClassName)
   {
-    auto evaluator = make_shared<SectionPairRowListValueArgumentEvaluator>("color=blue");
+    const auto evaluator = make_shared<SectionPairRowListValueArgumentEvaluator>("color=blue");
     ASSERT_STREQ("SectionPairRowListValueArgumentEvaluator", evaluator->getClassName().c_str());
   }
 

+ 2 - 2
test/cases/io/section-pair/evaluator/SectionPairRowSingleValueArgumentEvaluatorTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-19
-* Changed:         2023-05-18
+* Changed:         2025-12-21
 *
 * */
 
@@ -42,7 +42,7 @@ namespace
 
   TEST_F(SectionPairRowSingleValueArgumentEvaluatorTest, getClassName)
   {
-    auto evaluator = make_shared<SectionPairRowSingleValueArgumentEvaluator>("color=blue");
+    const auto evaluator = make_shared<SectionPairRowSingleValueArgumentEvaluator>("color=blue");
     ASSERT_STREQ("SectionPairRowSingleValueArgumentEvaluator", evaluator->getClassName().c_str());
   }
 

+ 2 - 2
test/cases/io/section-pair/evaluator/SectionPairSectionArgumentEvaluatorTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-20
-* Changed:         2023-05-18
+* Changed:         2025-12-21
 *
 * */
 
@@ -42,7 +42,7 @@ namespace
 
   TEST_F(SectionPairSectionArgumentEvaluatorTest, getClassName)
   {
-    auto evaluator = make_shared<SectionPairSectionArgumentEvaluator>("=33");
+    const auto evaluator = make_shared<SectionPairSectionArgumentEvaluator>("=33");
     ASSERT_STREQ("SectionPairSectionArgumentEvaluator", evaluator->getClassName().c_str());
   }
 

+ 2 - 2
test/cases/io/section-pair/evaluator/SectionPairValueArgumentEvaluatorTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-10
-* Changed:         2023-06-06
+* Changed:         2025-12-21
 *
 * */
 
@@ -41,7 +41,7 @@ namespace
 
   TEST_F(SectionPairValueArgumentEvaluatorTest, getClassName)
   {
-    auto evaluator = make_shared<SectionPairValueArgumentEvaluator>("=33");
+    const auto evaluator = make_shared<SectionPairValueArgumentEvaluator>("=33");
     ASSERT_STREQ("SectionPairValueArgumentEvaluator", evaluator->getClassName().c_str());
   }
 

+ 16 - 16
test/cases/io/section-pair/model/SectionPairDocumentTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-15
-* Changed:         2023-05-16
+* Changed:         2025-12-21
 *
 * */
 
@@ -39,7 +39,7 @@ namespace
 
   TEST_F(SectionPairDocumentTest, add)
   {
-    auto document = make_shared<SectionPairDocument>();
+    const auto document = make_shared<SectionPairDocument>();
 
     ASSERT_TRUE(document->getSectionList().empty());
     document->add(make_shared<SectionPairSection>("general"));
@@ -48,7 +48,7 @@ namespace
 
   TEST_F(SectionPairDocumentTest, add_section_id_already_exists)
   {
-    auto document = make_shared<SectionPairDocument>();
+    const auto document = make_shared<SectionPairDocument>();
     document->add(make_shared<SectionPairSection>("general"));
 
     EXPECT_THROW(
@@ -67,7 +67,7 @@ namespace
 
   TEST_F(SectionPairDocumentTest, clear)
   {
-    auto document = make_shared<SectionPairDocument>();
+    const auto document = make_shared<SectionPairDocument>();
     document->add(make_shared<SectionPairSection>("general"));
 
     ASSERT_EQ(1, document->getAmountOfSections());
@@ -77,7 +77,7 @@ namespace
 
   TEST_F(SectionPairDocumentTest, get_by_index)
   {
-    auto document = make_shared<SectionPairDocument>();
+    const auto document = make_shared<SectionPairDocument>();
     document->add(make_shared<SectionPairSection>("general"));
 
     ASSERT_TRUE(document->get(0) != nullptr);
@@ -85,7 +85,7 @@ namespace
 
   TEST_F(SectionPairDocumentTest, get_by_section_id)
   {
-    auto document = make_shared<SectionPairDocument>();
+    const auto document = make_shared<SectionPairDocument>();
     document->add(make_shared<SectionPairSection>("general"));
 
     ASSERT_TRUE(document->get("general") != nullptr);
@@ -93,7 +93,7 @@ namespace
 
   TEST_F(SectionPairDocumentTest, get_by_section_id_not_found)
   {
-    auto document = make_shared<SectionPairDocument>();
+    const auto document = make_shared<SectionPairDocument>();
     document->add(make_shared<SectionPairSection>("general"));
 
     ASSERT_TRUE(document->get("about") == nullptr);
@@ -101,7 +101,7 @@ namespace
 
   TEST_F(SectionPairDocumentTest, get_by_index_out_of_bounds)
   {
-    auto document = make_shared<SectionPairDocument>();
+    const auto document = make_shared<SectionPairDocument>();
 
     EXPECT_THROW(
         {
@@ -119,7 +119,7 @@ namespace
 
   TEST_F(SectionPairDocumentTest, getAmountOfSections)
   {
-    auto document = make_shared<SectionPairDocument>();
+    const auto document = make_shared<SectionPairDocument>();
     document->add(make_shared<SectionPairSection>("general"));
 
     ASSERT_EQ(1, document->getAmountOfSections());
@@ -127,25 +127,25 @@ namespace
 
   TEST_F(SectionPairDocumentTest, getClassName)
   {
-    auto document = make_shared<SectionPairDocument>();
+    const auto document = make_shared<SectionPairDocument>();
     ASSERT_STREQ("SectionPairDocument", document->getClassName().c_str());
   }
 
   TEST_F(SectionPairDocumentTest, getHeader)
   {
-    auto document = make_shared<SectionPairDocument>();
+    const auto document = make_shared<SectionPairDocument>();
     ASSERT_STREQ("# section-pair document", document->getHeader().c_str());
   }
 
   TEST_F(SectionPairDocumentTest, getSectionList)
   {
-    auto document = make_shared<SectionPairDocument>();
+    const auto document = make_shared<SectionPairDocument>();
     ASSERT_TRUE(document->getSectionList().empty());
   }
 
   TEST_F(SectionPairDocumentTest, hasSection)
   {
-    auto document = make_shared<SectionPairDocument>();
+    const auto document = make_shared<SectionPairDocument>();
     document->add(make_shared<SectionPairSection>("general"));
 
     ASSERT_TRUE(document->hasSection("general"));
@@ -153,7 +153,7 @@ namespace
 
   TEST_F(SectionPairDocumentTest, hasSection_not_found)
   {
-    auto document = make_shared<SectionPairDocument>();
+    const auto document = make_shared<SectionPairDocument>();
     document->add(make_shared<SectionPairSection>("general"));
 
     ASSERT_FALSE(document->hasSection("about"));
@@ -161,8 +161,8 @@ namespace
 
   TEST_F(SectionPairDocumentTest, marshal)
   {
-    shared_ptr<SectionPairDocument> document = SectionPairDocumentProvider::createDocument();
-    byte_field expected = SectionPairDocumentProvider::createSerializedDocument(NewLine::get());
+    const shared_ptr<SectionPairDocument> document = SectionPairDocumentProvider::createDocument();
+    const byte_field expected = SectionPairDocumentProvider::createSerializedDocument(NewLine::get());
 
     ASSERT_STREQ(expected.c_str(), document->marshal().c_str());
   }

+ 9 - 9
test/cases/io/section-pair/model/SectionPairRowListValueTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-10
-* Changed:         2023-05-18
+* Changed:         2025-12-21
 *
 * */
 
@@ -112,13 +112,13 @@ namespace
 
   TEST_F(SectionPairRowListValueTest, getList)
   {
-    SectionPairRowListValue list{};
+    const SectionPairRowListValue list{};
     ASSERT_TRUE(list.getList().empty());
   }
 
   TEST_F(SectionPairRowListValueTest, getSize)
   {
-    SectionPairRowListValue list{};
+    const SectionPairRowListValue list{};
     ASSERT_EQ(0, list.getSize());
   }
 
@@ -130,22 +130,22 @@ namespace
 
   TEST_F(SectionPairRowListValueTest, marshal)
   {
-    auto value = make_shared<SectionPairRowListValue>();
+    const auto value = make_shared<SectionPairRowListValue>();
     value->add("Drumming");
     value->add("Reading");
     value->add("Coding");
-    string newLine = NewLine::get();
+    const string newLine = NewLine::get();
 
-    string expected = "  Drumming" + newLine + "  Reading" + newLine + "  Coding" + newLine;
+    const string expected = "  Drumming" + newLine + "  Reading" + newLine + "  Coding" + newLine;
 
     ASSERT_STREQ(expected.c_str(), value->marshal().c_str());
   }
 
   TEST_F(SectionPairRowListValueTest, unmarshal)
   {
-    auto value = make_shared<SectionPairRowListValue>();
-    string newLine = NewLine::get();
-    string serializedListValue = "  Drumming" + newLine + "  Reading" + newLine + "  Coding" + newLine;
+    const auto value = make_shared<SectionPairRowListValue>();
+    const string newLine = NewLine::get();
+    const string serializedListValue = "  Drumming" + newLine + "  Reading" + newLine + "  Coding" + newLine;
     value->unmarshal(serializedListValue);
 
     ASSERT_EQ(3, value->getSize());

+ 6 - 6
test/cases/io/section-pair/model/SectionPairRowSingleValueTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-10
-* Changed:         2023-05-18
+* Changed:         2025-12-21
 *
 * */
 
@@ -64,7 +64,7 @@ namespace
 
   TEST_F(SectionPairRowSingleValueTest, get)
   {
-    SectionPairRowSingleValue value{"blue"};
+    const SectionPairRowSingleValue value{"blue"};
     ASSERT_STREQ("blue", value.get().c_str());
   }
 
@@ -81,9 +81,9 @@ namespace
 
   TEST_F(SectionPairRowSingleValueTest, marshal)
   {
-    auto value = make_shared<SectionPairRowSingleValue>("empty");
-    byte_field expected = "empty" + NewLine::get();
-    byte_field actual = value->marshal();
+    const auto value = make_shared<SectionPairRowSingleValue>("empty");
+    const byte_field expected = "empty" + NewLine::get();
+    const byte_field actual = value->marshal();
 
     ASSERT_STREQ(expected.c_str(), actual.c_str());
   }
@@ -126,7 +126,7 @@ namespace
 
   TEST_F(SectionPairRowSingleValueTest, unmarshal)
   {
-    auto value = make_shared<SectionPairRowSingleValue>("empty");
+    const auto value = make_shared<SectionPairRowSingleValue>("empty");
     value->unmarshal("blue");
 
     ASSERT_STREQ("blue", value->get().c_str());

+ 20 - 19
test/cases/io/section-pair/model/SectionPairRowTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-08
-* Changed:         2023-05-18
+* Changed:         2025-12-21
 *
 * */
 
@@ -19,6 +19,7 @@ using ls::std::io::SectionPairRowEnumType;
 using ls::std::io::SectionPairRowListValue;
 using ls::std::io::SectionPairRowSingleValue;
 using ls::std::io::SectionPairRowValue;
+using ls::std::io::section_pair_identifier;
 using std::dynamic_pointer_cast;
 using std::make_shared;
 using std::shared_ptr;
@@ -74,16 +75,16 @@ namespace
 
   TEST_F(SectionPairRowTest, getKey)
   {
-    ls::std::io::section_pair_identifier key = "tmp-key";
+    const section_pair_identifier key = "tmp-key";
 
-    SectionPairRow row(key, SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
+    const SectionPairRow row(key, SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
     ASSERT_STREQ(key.c_str(), row.getKey().c_str());
   }
 
   TEST_F(SectionPairRowTest, getValue)
   {
-    SectionPairRow row("hobbies", SectionPairRowEnumType::SECTION_PAIR_ROW_LIST_VALUE);
-    shared_ptr<SectionPairRowValue> value = row.getValue();
+    const SectionPairRow row("hobbies", SectionPairRowEnumType::SECTION_PAIR_ROW_LIST_VALUE);
+    const shared_ptr<SectionPairRowValue> value = row.getValue();
 
     ASSERT_TRUE(value != nullptr);
     ASSERT_EQ(SectionPairRowEnumType::SECTION_PAIR_ROW_LIST_VALUE, value->getType());
@@ -101,25 +102,25 @@ namespace
 
   TEST_F(SectionPairRowTest, marshal_single_value)
   {
-    auto row = make_shared<SectionPairRow>("favourite-color", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
-    shared_ptr<SectionPairRowSingleValue> singleValue = dynamic_pointer_cast<SectionPairRowSingleValue>(row->getValue());
+    const auto row = make_shared<SectionPairRow>("favourite-color", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
+    const shared_ptr<SectionPairRowSingleValue> singleValue = dynamic_pointer_cast<SectionPairRowSingleValue>(row->getValue());
     singleValue->set("blue");
-    byte_field expected = "favourite-color=blue" + NewLine::get();
-    byte_field actual = row->marshal();
+    const byte_field expected = "favourite-color=blue" + NewLine::get();
+    const byte_field actual = row->marshal();
 
     ASSERT_STREQ(expected.c_str(), actual.c_str());
   }
 
   TEST_F(SectionPairRowTest, marshal_list_value)
   {
-    auto row = make_shared<SectionPairRow>("favourite-colors", SectionPairRowEnumType::SECTION_PAIR_ROW_LIST_VALUE);
-    shared_ptr<SectionPairRowListValue> listValue = dynamic_pointer_cast<SectionPairRowListValue>(row->getValue());
+    const auto row = make_shared<SectionPairRow>("favourite-colors", SectionPairRowEnumType::SECTION_PAIR_ROW_LIST_VALUE);
+    const shared_ptr<SectionPairRowListValue> listValue = dynamic_pointer_cast<SectionPairRowListValue>(row->getValue());
     listValue->add("blue");
     listValue->add("red");
     listValue->add("purple");
-    string newLine = NewLine::get();
+    const string newLine = NewLine::get();
 
-    string expected = "favourite-colors:" + newLine + "  blue" + newLine + "  red" + newLine + "  purple" + newLine;
+    const string expected = "favourite-colors:" + newLine + "  blue" + newLine + "  red" + newLine + "  purple" + newLine;
 
     ASSERT_STREQ(expected.c_str(), row->marshal().c_str());
   }
@@ -170,8 +171,8 @@ namespace
 
   TEST_F(SectionPairRowTest, unmarshal_single_value)
   {
-    auto row = make_shared<SectionPairRow>("tmp-key", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
-    shared_ptr<SectionPairRowSingleValue> singleValue = dynamic_pointer_cast<SectionPairRowSingleValue>(row->getValue());
+    const auto row = make_shared<SectionPairRow>("tmp-key", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
+    const shared_ptr<SectionPairRowSingleValue> singleValue = dynamic_pointer_cast<SectionPairRowSingleValue>(row->getValue());
 
     row->unmarshal("favourite-color=blue");
 
@@ -181,11 +182,11 @@ namespace
 
   TEST_F(SectionPairRowTest, unmarshal_list_value)
   {
-    auto row = make_shared<SectionPairRow>("tmp-key", SectionPairRowEnumType::SECTION_PAIR_ROW_LIST_VALUE);
-    shared_ptr<SectionPairRowListValue> listValue = dynamic_pointer_cast<SectionPairRowListValue>(row->getValue());
-    string newLine = NewLine::get();
+    const auto row = make_shared<SectionPairRow>("tmp-key", SectionPairRowEnumType::SECTION_PAIR_ROW_LIST_VALUE);
+    const shared_ptr<SectionPairRowListValue> listValue = dynamic_pointer_cast<SectionPairRowListValue>(row->getValue());
+    const string newLine = NewLine::get();
 
-    string data = "favourite-colors:" + newLine + "  blue" + newLine + "  red" + newLine + "  purple" + newLine;
+    const string data = "favourite-colors:" + newLine + "  blue" + newLine + "  red" + newLine + "  purple" + newLine;
     row->unmarshal(data);
 
     ASSERT_STREQ("favourite-colors", row->getKey().c_str());

+ 21 - 21
test/cases/io/section-pair/model/SectionPairSectionTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-13
-* Changed:         2023-05-18
+* Changed:         2025-12-21
 *
 * */
 
@@ -60,7 +60,7 @@ namespace
         {
           try
           {
-            SectionPairSection section = SectionPairSection{"SERVER"};
+            auto section = SectionPairSection{"SERVER"};
           }
           catch (const IllegalArgumentException &_exception)
           {
@@ -72,7 +72,7 @@ namespace
 
   TEST_F(SectionPairSectionTest, add)
   {
-    auto section = make_shared<SectionPairSection>("general");
+    const auto section = make_shared<SectionPairSection>("general");
     section->add(make_shared<SectionPairRow>("color", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE));
 
     ASSERT_EQ(1, section->getRowAmount());
@@ -80,7 +80,7 @@ namespace
 
   TEST_F(SectionPairSectionTest, add_row_already_exists)
   {
-    auto section = make_shared<SectionPairSection>("general");
+    const auto section = make_shared<SectionPairSection>("general");
     section->add(make_shared<SectionPairRow>("color", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE));
 
     EXPECT_THROW(
@@ -99,7 +99,7 @@ namespace
 
   TEST_F(SectionPairSectionTest, clear)
   {
-    auto section = make_shared<SectionPairSection>("general");
+    const auto section = make_shared<SectionPairSection>("general");
     section->add(make_shared<SectionPairRow>("color", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE));
 
     ASSERT_EQ(1, section->getRowAmount());
@@ -109,7 +109,7 @@ namespace
 
   TEST_F(SectionPairSectionTest, get_by_index)
   {
-    auto section = make_shared<SectionPairSection>("general");
+    const auto section = make_shared<SectionPairSection>("general");
     section->add(make_shared<SectionPairRow>("color", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE));
 
     ASSERT_TRUE(section->get(0) != nullptr);
@@ -117,7 +117,7 @@ namespace
 
   TEST_F(SectionPairSectionTest, get_by_index_out_of_bounds)
   {
-    auto section = make_shared<SectionPairSection>("general");
+    const auto section = make_shared<SectionPairSection>("general");
 
     EXPECT_THROW(
         {
@@ -135,7 +135,7 @@ namespace
 
   TEST_F(SectionPairSectionTest, get_by_key)
   {
-    auto section = make_shared<SectionPairSection>("general");
+    const auto section = make_shared<SectionPairSection>("general");
     section->add(make_shared<SectionPairRow>("color", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE));
 
     ASSERT_TRUE(section->get("color") != nullptr);
@@ -143,7 +143,7 @@ namespace
 
   TEST_F(SectionPairSectionTest, get_by_key_not_found)
   {
-    auto section = make_shared<SectionPairSection>("general");
+    const auto section = make_shared<SectionPairSection>("general");
     section->add(make_shared<SectionPairRow>("color", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE));
 
     ASSERT_TRUE(section->get("hobbies") == nullptr);
@@ -151,7 +151,7 @@ namespace
 
   TEST_F(SectionPairSectionTest, getAmount)
   {
-    auto section = make_shared<SectionPairSection>("general");
+    const auto section = make_shared<SectionPairSection>("general");
     ASSERT_EQ(0, section->getRowAmount());
   }
 
@@ -162,19 +162,19 @@ namespace
 
   TEST_F(SectionPairSectionTest, getList)
   {
-    auto section = make_shared<SectionPairSection>("general");
+    const auto section = make_shared<SectionPairSection>("general");
     ASSERT_TRUE(section->getList().empty());
   }
 
   TEST_F(SectionPairSectionTest, getSectionId)
   {
-    auto section = make_shared<SectionPairSection>("general");
+    const auto section = make_shared<SectionPairSection>("general");
     ASSERT_STREQ("general", section->getSectionId().c_str());
   }
 
   TEST_F(SectionPairSectionTest, hasRow)
   {
-    auto section = make_shared<SectionPairSection>("general");
+    const auto section = make_shared<SectionPairSection>("general");
     section->add(make_shared<SectionPairRow>("color", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE));
 
     ASSERT_TRUE(section->hasRow("color"));
@@ -182,7 +182,7 @@ namespace
 
   TEST_F(SectionPairSectionTest, hasRow_not_found)
   {
-    auto section = make_shared<SectionPairSection>("general");
+    const auto section = make_shared<SectionPairSection>("general");
     section->add(make_shared<SectionPairRow>("color", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE));
 
     ASSERT_FALSE(section->hasRow("hobbies"));
@@ -191,15 +191,15 @@ namespace
   TEST_F(SectionPairSectionTest, marshal)
   {
     shared_ptr<SectionPairSection> section = SectionPairSectionProvider::createSectionWithTomExample();
-    byte_field expected = SectionPairSectionProvider::createSerializedSectionWithTomExample(NewLine::get());
-    byte_field actual = section->marshal();
+    const byte_field expected = SectionPairSectionProvider::createSerializedSectionWithTomExample(NewLine::get());
+    const byte_field actual = section->marshal();
 
     ASSERT_STREQ(expected.c_str(), actual.c_str());
   }
 
   TEST_F(SectionPairSectionTest, setSectionId)
   {
-    auto section = make_shared<SectionPairSection>("general");
+    const auto section = make_shared<SectionPairSection>("general");
 
     section->setSectionId("personal");
     ASSERT_STREQ("personal", section->getSectionId().c_str());
@@ -207,7 +207,7 @@ namespace
 
   TEST_F(SectionPairSectionTest, setSectionId_empty_id)
   {
-    auto section = make_shared<SectionPairSection>("general");
+    const auto section = make_shared<SectionPairSection>("general");
 
     EXPECT_THROW(
         {
@@ -225,7 +225,7 @@ namespace
 
   TEST_F(SectionPairSectionTest, setSectionId_invalid_id)
   {
-    auto section = make_shared<SectionPairSection>("general");
+    const auto section = make_shared<SectionPairSection>("general");
 
     EXPECT_THROW(
         {
@@ -243,7 +243,7 @@ namespace
 
   TEST_F(SectionPairSectionTest, unmarshal)
   {
-    auto section = make_shared<SectionPairSection>("tmp-id");
+    const auto section = make_shared<SectionPairSection>("tmp-id");
     section->unmarshal(SectionPairSectionProvider::createSerializedSectionWithTomExample(NewLine::get()));
 
     ASSERT_STREQ("general", section->getSectionId().c_str());
@@ -251,7 +251,7 @@ namespace
     ASSERT_STREQ("name", section->get(0)->getKey().c_str());
     ASSERT_STREQ("Tom", dynamic_pointer_cast<SectionPairRowSingleValue>(section->get(0)->getValue())->get().c_str());
     ASSERT_STREQ("jobs", section->get(1)->getKey().c_str());
-    shared_ptr<SectionPairRowListValue> listRow = dynamic_pointer_cast<SectionPairRowListValue>(section->get(1)->getValue());
+    const shared_ptr<SectionPairRowListValue> listRow = dynamic_pointer_cast<SectionPairRowListValue>(section->get(1)->getValue());
     ASSERT_EQ(2, listRow->getSize());
     ASSERT_STREQ("Farmer", listRow->get(0).c_str());
     ASSERT_STREQ("Bounty Hunter", listRow->get(1).c_str());

+ 2 - 2
test/cases/io/section-pair/reader/SectionPairFileReaderTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-21
-* Changed:         2023-03-25
+* Changed:         2025-12-21
 *
 * */
 
@@ -119,7 +119,7 @@ namespace
 
   TEST_F(SectionPairFileReaderTest, getDocument)
   {
-    SectionPairFileReader reader{SectionPairFileReaderTest::createMockParameter(true)};
+    const SectionPairFileReader reader{SectionPairFileReaderTest::createMockParameter(true)};
     ASSERT_FALSE(reader.getDocument() == nullptr);
   }
 

+ 3 - 3
test/cases/io/section-pair/serialization/SerializableSectionPairDocumentTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-16
-* Changed:         2023-03-25
+* Changed:         2025-12-21
 *
 * */
 
@@ -57,7 +57,7 @@ namespace
         {
           try
           {
-            SerializableSectionPairDocument serializable = SerializableSectionPairDocument(parameter);
+            auto serializable = SerializableSectionPairDocument(parameter);
           }
           catch (const IllegalArgumentException &_exception)
           {
@@ -79,7 +79,7 @@ namespace
   {
     SerializableSectionPairParameter parameter{};
     parameter.setValue(make_shared<SectionPairDocument>());
-    SerializableSectionPairDocument serializable(parameter);
+    const SerializableSectionPairDocument serializable(parameter);
 
     ASSERT_TRUE(serializable.getValue() != nullptr);
   }

+ 3 - 3
test/cases/io/section-pair/serialization/SerializableSectionPairRowListValueTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-11
-* Changed:         2023-05-18
+* Changed:         2025-12-21
 *
 * */
 
@@ -71,9 +71,9 @@ namespace
   TEST_F(SerializableSectionPairRowListValueTest, getValue)
   {
     SerializableSectionPairParameter parameter{};
-    auto value = make_shared<SectionPairRowListValue>();
+    const auto value = make_shared<SectionPairRowListValue>();
     parameter.setValue(value);
-    SerializableSectionPairRowListValue serializable(parameter);
+    const SerializableSectionPairRowListValue serializable(parameter);
 
     ASSERT_TRUE(value == serializable.getValue());
   }

+ 3 - 3
test/cases/io/section-pair/serialization/SerializableSectionPairRowSingleValueTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-11
-* Changed:         2023-05-18
+* Changed:         2025-12-21
 *
 * */
 
@@ -73,9 +73,9 @@ namespace
   TEST_F(SerializableSectionPairRowSingleValueTest, getValue)
   {
     SerializableSectionPairParameter parameter{};
-    auto value = make_shared<SectionPairRowSingleValue>("empty");
+    const auto value = make_shared<SectionPairRowSingleValue>("empty");
     parameter.setValue(value);
-    SerializableSectionPairRowSingleValue serializable(parameter);
+    const SerializableSectionPairRowSingleValue serializable(parameter);
 
     ASSERT_TRUE(value == serializable.getValue());
   }

+ 19 - 19
test/cases/io/section-pair/serialization/SerializableSectionPairRowTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-12
-* Changed:         2023-03-25
+* Changed:         2025-12-21
 *
 * */
 
@@ -105,37 +105,37 @@ namespace
   {
     SerializableSectionPairParameter parameter{};
     parameter.setValue(make_shared<SectionPairRow>("tmp-key", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE));
-    SerializableSectionPairRow serializable{parameter};
+    const SerializableSectionPairRow serializable{parameter};
 
     ASSERT_TRUE(serializable.getValue() != nullptr);
   }
 
   TEST_P(SerializableSectionPairRowTest_LineBreakTest, marshal_single_value)
   {
-    string newLine = GetParam();
-    shared_ptr<SerializableSectionPairRow> serializable = SerializableSectionPairRowProvider::createSingleValueForMarshal(newLine);
+    const string newLine = GetParam();
+    const shared_ptr<SerializableSectionPairRow> serializable = SerializableSectionPairRowProvider::createSingleValueForMarshal(newLine);
 
-    byte_field expected = "favourite-color=blue" + newLine;
-    byte_field actual = serializable->marshal();
+    const byte_field expected = "favourite-color=blue" + newLine;
+    const byte_field actual = serializable->marshal();
 
     ASSERT_STREQ(expected.c_str(), actual.c_str());
   }
 
   TEST_P(SerializableSectionPairRowTest_LineBreakTest, marshal_list_value)
   {
-    string newLine = GetParam();
-    shared_ptr<SerializableSectionPairRow> serializable = SerializableSectionPairRowProvider::createListValueForMarshal(newLine);
+    const string newLine = GetParam();
+    const shared_ptr<SerializableSectionPairRow> serializable = SerializableSectionPairRowProvider::createListValueForMarshal(newLine);
 
-    string expected = "favourite-colors:" + newLine + "  blue" + newLine + "  red" + newLine + "  purple" + newLine;
+    const string expected = "favourite-colors:" + newLine + "  blue" + newLine + "  red" + newLine + "  purple" + newLine;
 
     ASSERT_STREQ(expected.c_str(), serializable->marshal().c_str());
   }
 
   TEST_P(SerializableSectionPairRowTest_LineBreakTest, unmarshal_single_value)
   {
-    shared_ptr<SerializableSectionPairRow> serializable = SerializableSectionPairRowProvider::createSingleValueForUnmarshal(GetParam());
+    const shared_ptr<SerializableSectionPairRow> serializable = SerializableSectionPairRowProvider::createSingleValueForUnmarshal(GetParam());
     serializable->unmarshal("favourite-color=blue");
-    shared_ptr<SectionPairRow> row = dynamic_pointer_cast<SectionPairRow>(serializable->getValue());
+    const shared_ptr<SectionPairRow> row = dynamic_pointer_cast<SectionPairRow>(serializable->getValue());
 
     ASSERT_STREQ("favourite-color", row->getKey().c_str());
     ASSERT_STREQ("blue", dynamic_pointer_cast<SectionPairRowSingleValue>(row->getValue())->get().c_str());
@@ -143,12 +143,12 @@ namespace
 
   TEST_P(SerializableSectionPairRowTest_LineBreakTest, unmarshal_list_value)
   {
-    string newLine = GetParam();
-    shared_ptr<SerializableSectionPairRow> serializable = SerializableSectionPairRowProvider::createListValueForUnmarshal(newLine);
+    const string newLine = GetParam();
+    const shared_ptr<SerializableSectionPairRow> serializable = SerializableSectionPairRowProvider::createListValueForUnmarshal(newLine);
 
-    string data = "favourite-colors:" + newLine + "  blue" + newLine + "  red" + newLine + "  purple" + newLine;
+    const string data = "favourite-colors:" + newLine + "  blue" + newLine + "  red" + newLine + "  purple" + newLine;
     serializable->unmarshal(data);
-    shared_ptr<SectionPairRow> row = dynamic_pointer_cast<SectionPairRow>(serializable->getValue());
+    const shared_ptr<SectionPairRow> row = dynamic_pointer_cast<SectionPairRow>(serializable->getValue());
 
     ASSERT_STREQ("favourite-colors", row->getKey().c_str());
     ASSERT_EQ(3, dynamic_pointer_cast<SectionPairRowListValue>(row->getValue())->getSize());
@@ -159,9 +159,9 @@ namespace
 
   TEST_P(SerializableSectionPairRowTest_IsValidSingleValueTest, unmarshal_single_value)
   {
-    shared_ptr<SerializableSectionPairRow> serializable = SerializableSectionPairRowProvider::createSingleValueForUnmarshal(NewLine::getWindowsNewLine());
+    const shared_ptr<SerializableSectionPairRow> serializable = SerializableSectionPairRowProvider::createSingleValueForUnmarshal(NewLine::getWindowsNewLine());
     serializable->unmarshal(GetParam().at(0));
-    shared_ptr<SectionPairRow> row = dynamic_pointer_cast<SectionPairRow>(serializable->getValue());
+    const shared_ptr<SectionPairRow> row = dynamic_pointer_cast<SectionPairRow>(serializable->getValue());
 
     ASSERT_STREQ(GetParam().at(1).c_str(), row->getKey().c_str());
     ASSERT_STREQ(GetParam().at(2).c_str(), dynamic_pointer_cast<SectionPairRowSingleValue>(row->getValue())->get().c_str());
@@ -169,7 +169,7 @@ namespace
 
   TEST_P(SerializableSectionPairRowTest_IsInvalidSingleValueTest, unmarshal_single_value)
   {
-    shared_ptr<SerializableSectionPairRow> serializable = SerializableSectionPairRowProvider::createSingleValueForUnmarshal(NewLine::get());
+    const shared_ptr<SerializableSectionPairRow> serializable = SerializableSectionPairRowProvider::createSingleValueForUnmarshal(NewLine::get());
 
     EXPECT_THROW(
         {
@@ -187,7 +187,7 @@ namespace
 
   TEST_P(SerializableSectionPairRowTest_IsInvalidListValueTest, unmarshal_list_value)
   {
-    shared_ptr<SerializableSectionPairRow> serializable = SerializableSectionPairRowProvider::createListValueForUnmarshal(NewLine::get());
+    const shared_ptr<SerializableSectionPairRow> serializable = SerializableSectionPairRowProvider::createListValueForUnmarshal(NewLine::get());
 
     EXPECT_THROW(
         {

+ 2 - 2
test/cases/io/section-pair/serialization/SerializableSectionPairSectionTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-14
-* Changed:         2023-05-18
+* Changed:         2025-12-21
 *
 * */
 
@@ -78,7 +78,7 @@ namespace
   {
     SerializableSectionPairParameter parameter{};
     parameter.setValue(make_shared<SectionPairSection>("general"));
-    SerializableSectionPairSection serializable{parameter};
+    const SerializableSectionPairSection serializable{parameter};
 
     ASSERT_TRUE(serializable.getValue() != nullptr);
   }

+ 3 - 3
test/cases/io/section-pair/validator/SectionPairRowListValueValidatorTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-19
-* Changed:         2023-06-06
+* Changed:         2025-12-21
 *
 * */
 
@@ -50,8 +50,8 @@ namespace
 
   TEST_F(SectionPairRowListValueValidatorTest, getValidationRegex)
   {
-    string expected = R"(((((([a-z]([a-z0-9-]){1,63}):{1})((\n{1})|(\r{1}\n{1})))( {2}[a-zA-Z0-9\-_#!?\[\]\{\}\(\)\$€\\§<>+:;., \*\/"]{1,512}((\n{1})|(\r{1}\n{1})))){1}(( {2}[a-zA-Z0-9\-_#!?\[\]\{\}\(\)\$€\\§<>+:;., \*\/"]{1,512}((\n{1})|(\r{1}\n{1})))*)))";
-    string actual = SectionPairRowListValueValidator::getValidationRegex();
+    const string expected = R"(((((([a-z]([a-z0-9-]){1,63}):{1})((\n{1})|(\r{1}\n{1})))( {2}[a-zA-Z0-9\-_#!?\[\]\{\}\(\)\$€\\§<>+:;., \*\/"]{1,512}((\n{1})|(\r{1}\n{1})))){1}(( {2}[a-zA-Z0-9\-_#!?\[\]\{\}\(\)\$€\\§<>+:;., \*\/"]{1,512}((\n{1})|(\r{1}\n{1})))*)))";
+    const string actual = SectionPairRowListValueValidator::getValidationRegex();
 
     ASSERT_STREQ(expected.c_str(), actual.c_str());
   }

+ 2 - 2
test/cases/io/section-pair/validator/SectionPairRowSingleValueValidatorTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-19
-* Changed:         2023-06-06
+* Changed:         2025-12-21
 *
 * */
 
@@ -52,7 +52,7 @@ namespace
 
   TEST_F(SectionPairRowSingleValueValidatorTest, getValidationRegex)
   {
-    string expected = R"(([a-z]([a-z0-9-]){1,63})={1}([a-zA-Z0-9\-_#!?\[\]\{\}\(\)\$€\\§<>+:;., \*\/"]{1,512}){1}($|\n{1}|\r{1}\n{1}))";
+    const string expected = R"(([a-z]([a-z0-9-]){1,63})={1}([a-zA-Z0-9\-_#!?\[\]\{\}\(\)\$€\\§<>+:;., \*\/"]{1,512}){1}($|\n{1}|\r{1}\n{1}))";
     ASSERT_STREQ(expected.c_str(), SectionPairRowSingleValueValidator::getValidationRegex().c_str());
   }
 

+ 2 - 2
test/cases/io/section-pair/validator/SectionPairRowValidatorTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-20
-* Changed:         2023-06-06
+* Changed:         2025-12-21
 *
 * */
 
@@ -51,7 +51,7 @@ namespace
 
   TEST_F(SectionPairRowValidatorTest, getValidationRegex)
   {
-    string expected = R"((([a-z]([a-z0-9-]){1,63})={1}([a-zA-Z0-9\-_#!?\[\]\{\}\(\)\$€\\§<>+:;., \*\/"]{1,512}){1}($|\n{1}|\r{1}\n{1}))|(((((([a-z]([a-z0-9-]){1,63}):{1})((\n{1})|(\r{1}\n{1})))( {2}[a-zA-Z0-9\-_#!?\[\]\{\}\(\)\$€\\§<>+:;., \*\/"]{1,512}((\n{1})|(\r{1}\n{1})))){1}(( {2}[a-zA-Z0-9\-_#!?\[\]\{\}\(\)\$€\\§<>+:;., \*\/"]{1,512}((\n{1})|(\r{1}\n{1})))*))))";
+    const string expected = R"((([a-z]([a-z0-9-]){1,63})={1}([a-zA-Z0-9\-_#!?\[\]\{\}\(\)\$€\\§<>+:;., \*\/"]{1,512}){1}($|\n{1}|\r{1}\n{1}))|(((((([a-z]([a-z0-9-]){1,63}):{1})((\n{1})|(\r{1}\n{1})))( {2}[a-zA-Z0-9\-_#!?\[\]\{\}\(\)\$€\\§<>+:;., \*\/"]{1,512}((\n{1})|(\r{1}\n{1})))){1}(( {2}[a-zA-Z0-9\-_#!?\[\]\{\}\(\)\$€\\§<>+:;., \*\/"]{1,512}((\n{1})|(\r{1}\n{1})))*))))";
     ASSERT_STREQ(expected.c_str(), SectionPairRowValidator::getValidationRegex().c_str());
   }
 

+ 2 - 2
test/cases/io/section-pair/validator/SectionPairSectionValidatorTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-20
-* Changed:         2023-06-06
+* Changed:         2025-12-21
 *
 * */
 
@@ -54,7 +54,7 @@ namespace
 
   TEST_F(SectionPairSectionValidatorTest, getValidationRegex)
   {
-    string expected =
+    const string expected =
         R"(((\n)|(\r\n))\[{1}([a-z]([a-z0-9-]){1,63})\]{1}(((\n)|(\r\n)){2})(((([a-z]([a-z0-9-]){1,63})={1}([a-zA-Z0-9\-_#!?\[\]\{\}\(\)\$€\\§<>+:;., \*\/"]{1,512}){1}($|\n{1}|\r{1}\n{1}))|(((((([a-z]([a-z0-9-]){1,63}):{1})((\n{1})|(\r{1}\n{1})))( {2}[a-zA-Z0-9\-_#!?\[\]\{\}\(\)\$€\\§<>+:;., \*\/"]{1,512}((\n{1})|(\r{1}\n{1})))){1}(( {2}[a-zA-Z0-9\-_#!?\[\]\{\}\(\)\$€\\§<>+:;., \*\/"]{1,512}((\n{1})|(\r{1}\n{1})))*)))){1})(((([a-z]([a-z0-9-]){1,63})={1}([a-zA-Z0-9\-_#!?\[\]\{\}\(\)\$€\\§<>+:;., \*\/"]{1,512}){1}($|\n{1}|\r{1}\n{1}))|(((((([a-z]([a-z0-9-]){1,63}):{1})((\n{1})|(\r{1}\n{1})))( {2}[a-zA-Z0-9\-_#!?\[\]\{\}\(\)\$€\\§<>+:;., \*\/"]{1,512}((\n{1})|(\r{1}\n{1})))){1}(( {2}[a-zA-Z0-9\-_#!?\[\]\{\}\(\)\$€\\§<>+:;., \*\/"]{1,512}((\n{1})|(\r{1}\n{1})))*))))*))";
     ASSERT_STREQ(expected.c_str(), SectionPairSectionValidator::getValidationRegex().c_str());
   }

+ 3 - 3
test/cases/io/section-pair/validator/SectionPairValueValidatorTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-09
-* Changed:         2023-06-06
+* Changed:         2025-12-21
 *
 * */
 
@@ -52,8 +52,8 @@ namespace
 
   TEST_F(SectionPairValueValidatorTest, getValidationRegex)
   {
-    string expected = R"([a-zA-Z0-9\-_#!?\[\]\{\}\(\)\$€\\§<>+:;., \*\/"]{1,512})";
-    string actual = SectionPairValueValidator::getValidationRegex();
+    const string expected = R"([a-zA-Z0-9\-_#!?\[\]\{\}\(\)\$€\\§<>+:;., \*\/"]{1,512})";
+    const string actual = SectionPairValueValidator::getValidationRegex();
 
     ASSERT_STREQ(expected.c_str(), actual.c_str());
   }

+ 3 - 3
test/cases/io/xml/XmlAttributeTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-09-23
- * Changed:         2023-03-25
+ * Changed:         2025-12-21
  *
  * */
 
@@ -43,13 +43,13 @@ namespace
 
   TEST_F(XmlAttributeTest, getName)
   {
-    XmlAttribute attribute{"id"};
+    const XmlAttribute attribute{"id"};
     ASSERT_STREQ("id", attribute.getName().c_str());
   }
 
   TEST_F(XmlAttributeTest, getValue)
   {
-    XmlAttribute attribute{"id"};
+    const XmlAttribute attribute{"id"};
     ASSERT_TRUE(attribute.getValue().empty());
   }
 

+ 4 - 4
test/cases/io/xml/XmlDeclarationTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-09-29
- * Changed:         2023-03-25
+ * Changed:         2025-12-21
  *
  * */
 
@@ -43,19 +43,19 @@ namespace
 
   TEST_F(XmlDeclarationTest, getEncoding)
   {
-    XmlDeclaration declaration{"1.0"};
+    const XmlDeclaration declaration{"1.0"};
     ASSERT_TRUE(declaration.getEncoding().empty());
   }
 
   TEST_F(XmlDeclarationTest, getStandalone)
   {
-    XmlDeclaration declaration{"1.0"};
+    const XmlDeclaration declaration{"1.0"};
     ASSERT_TRUE(declaration.getStandalone().empty());
   }
 
   TEST_F(XmlDeclarationTest, getVersion)
   {
-    XmlDeclaration declaration{"1.0"};
+    const XmlDeclaration declaration{"1.0"};
     ASSERT_STREQ("1.0", declaration.getVersion().c_str());
   }
 

+ 5 - 5
test/cases/io/xml/XmlDocumentTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-09-30
- * Changed:         2023-05-18
+ * Changed:         2025-12-21
  *
  * */
 
@@ -32,13 +32,13 @@ namespace
 
   TEST_F(XmlDocumentTest, getDeclaration)
   {
-    XmlDocument document{};
+    const XmlDocument document{};
     ASSERT_TRUE(document.getDeclaration() == nullptr);
   }
 
   TEST_F(XmlDocumentTest, getRootElement)
   {
-    XmlDocument document{};
+    const XmlDocument document{};
     ASSERT_TRUE(document.getRootElement() == nullptr);
   }
 
@@ -108,11 +108,11 @@ namespace
     document.setDeclaration(make_shared<XmlDeclaration>(declaration));
 
     document.setRootElement(TestDataFactory::createXmlContent());
-    string xmlStream = document.toXml();
+    const string xmlStream = document.toXml();
 
     ASSERT_TRUE(!xmlStream.empty());
 
-    string expectedXmlString = R"(<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+    const string expectedXmlString = R"(<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
 <dialog name="dungeon_001">
     <dialogUnit id="001">
         <text>Hello!</text>

+ 17 - 17
test/cases/io/xml/XmlNodeTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-09-25
- * Changed:         2023-05-16
+ * Changed:         2025-12-21
  *
  * */
 
@@ -320,8 +320,8 @@ namespace
   TEST_F(XmlNodeTest, addChildAfter_no_search_node_available)
   {
     XmlNode dialogsNode{"dialogs"};
-    auto newChild = make_shared<XmlNode>("newChild");
-    auto searchNode = make_shared<XmlNode>("searchNode");
+    const auto newChild = make_shared<XmlNode>("newChild");
+    const auto searchNode = make_shared<XmlNode>("searchNode");
 
     ASSERT_FALSE(dialogsNode.addChildAfter(newChild, searchNode));
   }
@@ -407,8 +407,8 @@ namespace
   TEST_F(XmlNodeTest, addChildBefore_no_search_node_available)
   {
     XmlNode dialogsNode{"dialogs"};
-    auto newChild = make_shared<XmlNode>("newChild");
-    auto searchNode = make_shared<XmlNode>("searchNode");
+    const auto newChild = make_shared<XmlNode>("newChild");
+    const auto searchNode = make_shared<XmlNode>("searchNode");
 
     ASSERT_FALSE(dialogsNode.addChildBefore(newChild, searchNode));
   }
@@ -582,13 +582,13 @@ namespace
 
   TEST_F(XmlNodeTest, getAttributes)
   {
-    XmlNode dialogNode{"dialog"};
+    const XmlNode dialogNode{"dialog"};
     ASSERT_TRUE(dialogNode.getAttributes().empty());
   }
 
   TEST_F(XmlNodeTest, getChildren)
   {
-    XmlNode dialogNode{"dialog"};
+    const XmlNode dialogNode{"dialog"};
     ASSERT_TRUE(dialogNode.getChildren().empty());
   }
 
@@ -616,13 +616,13 @@ namespace
 
   TEST_F(XmlNodeTest, getName)
   {
-    XmlNode dialogNode{"dialog"};
+    const XmlNode dialogNode{"dialog"};
     ASSERT_STREQ("dialog", dialogNode.getName().c_str());
   }
 
   TEST_F(XmlNodeTest, getValue)
   {
-    XmlNode dialogNode{"dialog"};
+    const XmlNode dialogNode{"dialog"};
     ASSERT_TRUE(dialogNode.getValue().empty());
   }
 
@@ -701,7 +701,7 @@ namespace
   TEST_F(XmlNodeTest, hasChildV2)
   {
     XmlNode dialogsNode{"dialogsNode"};
-    auto searchNode = make_shared<XmlNode>("dialogB");
+    const auto searchNode = make_shared<XmlNode>("dialogB");
     dialogsNode.addChildToEnd(make_shared<XmlNode>("dialogA"));
     dialogsNode.addChildToEnd(searchNode);
     dialogsNode.addChildToEnd(make_shared<XmlNode>("dialogC"));
@@ -712,7 +712,7 @@ namespace
   TEST_F(XmlNodeTest, hasChildV2_child_not_available)
   {
     XmlNode dialogsNode{"dialogsNode"};
-    auto searchNode = make_shared<XmlNode>("dialogB");
+    const auto searchNode = make_shared<XmlNode>("dialogB");
 
     ASSERT_FALSE(dialogsNode.hasChild(searchNode));
   }
@@ -930,21 +930,21 @@ namespace
 
   TEST_F(XmlNodeTest, toXml)
   {
-    auto root = TestDataFactory::createXmlContent();
-    string xmlContent = root->toXml();
+    const auto root = TestDataFactory::createXmlContent();
+    const string xmlContent = root->toXml();
 
     ASSERT_TRUE(!xmlContent.empty());
   }
 
   TEST_F(XmlNodeTest, toXml_no_value)
   {
-    auto singleLineElement = make_shared<XmlNode>("info");
-    auto attribute = make_shared<XmlAttribute>("id");
+    const auto singleLineElement = make_shared<XmlNode>("info");
+    const auto attribute = make_shared<XmlAttribute>("id");
     attribute->setValue("important");
     singleLineElement->addAttributeToEnd(attribute);
 
-    string xmlContent{singleLineElement->toXml()};
-    string expectedXmlString = R"(<info id="important" />)";
+    const string xmlContent{singleLineElement->toXml()};
+    const string expectedXmlString = R"(<info id="important" />)";
 
     ASSERT_TRUE(xmlContent.find(expectedXmlString) != string::npos);
   }

+ 3 - 3
test/cases/io/xml/XmlParseParameterTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-05
-* Changed:         2023-03-25
+* Changed:         2025-12-21
 *
 * */
 
@@ -29,13 +29,13 @@ namespace
 
   TEST_F(XmlParseParameterTest, getLevel)
   {
-    XmlParseParameter parameter{};
+    const XmlParseParameter parameter{};
     ASSERT_EQ(0, parameter.getLevel());
   }
 
   TEST_F(XmlParseParameterTest, getNode)
   {
-    XmlParseParameter parameter{};
+    const XmlParseParameter parameter{};
     ASSERT_TRUE(parameter.getNode() == nullptr);
   }
 

+ 7 - 7
test/cases/io/xml/XmlParserTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-26
- * Changed:         2023-05-16
+ * Changed:         2025-12-21
  *
  * */
 
@@ -36,7 +36,7 @@ namespace
       XmlParserTest() = default;
       ~XmlParserTest() override = default;
 
-      static shared_ptr<XmlAttribute> getAttributeAtPosition(const list<shared_ptr<XmlAttribute>> &_attributes, size_t _index)
+      static shared_ptr<XmlAttribute> getAttributeAtPosition(const list<shared_ptr<XmlAttribute>> &_attributes, const size_t _index)
       {
         shared_ptr<XmlAttribute> attribute{};
 
@@ -59,7 +59,7 @@ namespace
         return attribute;
       }
 
-      static shared_ptr<XmlNode> getChildAtPosition(const list<shared_ptr<XmlNode>> &_children, size_t _index)
+      static shared_ptr<XmlNode> getChildAtPosition(const list<shared_ptr<XmlNode>> &_children, const size_t _index)
       {
         shared_ptr<XmlNode> node{};
 
@@ -84,8 +84,8 @@ namespace
 
       static byte_field readXmlStateMachine()
       {
-        string xmlPath = TestHelper::getResourcesFolderLocation() + "state-machine-test.xml";
-        File file{xmlPath};
+        const string xmlPath = TestHelper::getResourcesFolderLocation() + "state-machine-test.xml";
+        const File file{xmlPath};
         byte_field data = FileReader{file}.read();
 
         return data;
@@ -100,7 +100,7 @@ namespace
         {
           try
           {
-            XmlParser xmlParser = XmlParser{document};
+            auto xmlParser = XmlParser{document};
           }
           catch (const IllegalArgumentException &_exception)
           {
@@ -282,7 +282,7 @@ namespace
 
   TEST_F(XmlParserTest, getDocument)
   {
-    XmlParser xmlParser{make_shared<XmlDocument>()};
+    const XmlParser xmlParser{make_shared<XmlDocument>()};
     ASSERT_TRUE(xmlParser.getDocument() != nullptr);
   }
 

+ 5 - 5
test/cases/io/xml/XmlReaderTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-10-10
- * Changed:         2023-05-17
+ * Changed:         2025-12-21
  *
  * */
 
@@ -34,7 +34,7 @@ namespace
 
   TEST_F(XmlReaderTest, read)
   {
-    string xmlPath = TestHelper::getResourcesFolderLocation() + "state-machine-test.xml";
+    const string xmlPath = TestHelper::getResourcesFolderLocation() + "state-machine-test.xml";
     XmlReader xmlReader{make_shared<XmlDocument>(), xmlPath};
 
     ASSERT_TRUE(!xmlReader.read().empty());
@@ -42,15 +42,15 @@ namespace
 
   TEST_F(XmlReaderTest, getDocument)
   {
-    string xmlPath = TestHelper::getResourcesFolderLocation() + "state-machine-test.xml";
-    XmlReader xmlReader{make_shared<XmlDocument>(), xmlPath};
+    const string xmlPath = TestHelper::getResourcesFolderLocation() + "state-machine-test.xml";
+    const XmlReader xmlReader{make_shared<XmlDocument>(), xmlPath};
 
     ASSERT_TRUE(xmlReader.getDocument() != nullptr);
   }
 
   TEST_F(XmlReaderTest, setDocument)
   {
-    string xmlPath = TestHelper::getResourcesFolderLocation() + "state-machine-test.xml";
+    const string xmlPath = TestHelper::getResourcesFolderLocation() + "state-machine-test.xml";
     auto document = make_shared<XmlDocument>();
     XmlReader xmlReader{document, xmlPath};
     ASSERT_TRUE(xmlReader.getDocument() == document);

+ 22 - 22
test/cases/time/DateTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-14
- * Changed:         2023-03-25
+ * Changed:         2025-12-21
  *
  * */
 
@@ -31,7 +31,7 @@ namespace
   TEST_F(DateTest, operator_add)
   {
     Date date{};
-    time_t timestamp = date.getTime();
+    const time_t timestamp = date.getTime();
 
     date = date + 1;
     ASSERT_EQ(timestamp + 86400, date.getTime());
@@ -40,7 +40,7 @@ namespace
   TEST_F(DateTest, operator_add_with_negative_value)
   {
     Date date{};
-    time_t timestamp = date.getTime();
+    const time_t timestamp = date.getTime();
 
     date = date + (-1);
     ASSERT_EQ(timestamp - 86400, date.getTime());
@@ -49,7 +49,7 @@ namespace
   TEST_F(DateTest, operator_subtraction)
   {
     Date date{};
-    time_t timestamp = date.getTime();
+    const time_t timestamp = date.getTime();
 
     date = date - 1;
     ASSERT_EQ(timestamp - 86400, date.getTime());
@@ -58,7 +58,7 @@ namespace
   TEST_F(DateTest, operator_subtraction_with_negative_value)
   {
     Date date{};
-    time_t timestamp = date.getTime();
+    const time_t timestamp = date.getTime();
 
     date = date - (-1);
     ASSERT_EQ(timestamp + 86400, date.getTime());
@@ -67,40 +67,40 @@ namespace
   TEST_F(DateTest, operator_plus_equals)
   {
     Date date{};
-    time_t timestamp = date.getTime();
+    const time_t timestamp = date.getTime();
 
     date += 2;
-    time_t expectedTimestamp = timestamp + 86400 * 2;
+    const time_t expectedTimestamp = timestamp + 86400 * 2;
     ASSERT_EQ(expectedTimestamp, date.getTime());
   }
 
   TEST_F(DateTest, operator_plus_equals_with_negative_value)
   {
     Date date{};
-    time_t timestamp = date.getTime();
+    const time_t timestamp = date.getTime();
 
     date += -2;
-    time_t expectedTimestamp = timestamp - 86400 * 2;
+    const time_t expectedTimestamp = timestamp - 86400 * 2;
     ASSERT_EQ(expectedTimestamp, date.getTime());
   }
 
   TEST_F(DateTest, operator_minus_equals)
   {
     Date date{};
-    time_t timestamp = date.getTime();
+    const time_t timestamp = date.getTime();
 
     date -= 2;
-    time_t expectedTimestamp = timestamp - 86400 * 2;
+    const time_t expectedTimestamp = timestamp - 86400 * 2;
     ASSERT_EQ(expectedTimestamp, date.getTime());
   }
 
   TEST_F(DateTest, operator_minus_equals_with_negative_value)
   {
     Date date{};
-    time_t timestamp = date.getTime();
+    const time_t timestamp = date.getTime();
 
     date -= -2;
-    time_t expectedTimestamp = timestamp + 86400 * 2;
+    const time_t expectedTimestamp = timestamp + 86400 * 2;
     ASSERT_EQ(expectedTimestamp, date.getTime());
   }
 
@@ -108,7 +108,7 @@ namespace
 
   TEST_F(DateTest, after)
   {
-    Date date{}; // today
+    const Date date{}; // today
 
     Date referenceDate{};
     referenceDate = referenceDate - 1; // yesterday
@@ -118,7 +118,7 @@ namespace
 
   TEST_F(DateTest, after_is_before_refernce_date)
   {
-    Date date{}; // is today
+    const Date date{}; // is today
     Date referenceDate{};
 
     referenceDate = referenceDate + 1; // is tomorrow
@@ -131,14 +131,14 @@ namespace
     Date date{};
     date = date - 1; // yesterday
 
-    Date referenceDate{}; // today
+    const Date referenceDate{}; // today
 
     ASSERT_TRUE(date.before(referenceDate));
   }
 
   TEST_F(DateTest, before_is_after_reference_date)
   {
-    Date date{}; // today
+    const Date date{}; // today
     Date referenceDate{};
 
     referenceDate = referenceDate - 1; // yesterday
@@ -188,7 +188,7 @@ namespace
 
   TEST_F(DateTest, getTime)
   {
-    Date date{};
+    const Date date{};
     ASSERT_TRUE(date.getTime() > 0);
   }
 
@@ -211,10 +211,10 @@ namespace
 
   TEST_F(DateTest, toString)
   {
-    Date date{};
-    string regexSearchString = R"((\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}))";
-    regex _regex{regexSearchString};
-    string dateString = date.toString();
+    const Date date{};
+    const string regexSearchString = R"((\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}))";
+    const regex _regex{regexSearchString};
+    const string dateString = date.toString();
 
     ASSERT_TRUE(regex_match(dateString, _regex));
   }

+ 3 - 3
test/cases/time/common/DateParameterMapperTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-03-31
-* Changed:         2023-04-01
+* Changed:         2025-12-21
 *
 * */
 
@@ -45,8 +45,8 @@ namespace
 
   TEST_P(DateParameterMapperTest_Unix, toUnixTimestamp)
   {
-    DateParameter dateParameter = GetParam().second;
-    UnixTimestamp timestamp = DateParameterMapper::toUnixTimestamp(dateParameter);
+    const DateParameter dateParameter = GetParam().second;
+    const UnixTimestamp timestamp = DateParameterMapper::toUnixTimestamp(dateParameter);
 
     ASSERT_EQ(GetParam().first, timestamp);
   }

+ 12 - 12
test/cases/time/common/DateParameterTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-03-29
-* Changed:         2023-03-31
+* Changed:         2025-12-21
 *
 * */
 
@@ -25,7 +25,7 @@ namespace
 
   TEST_F(DateParameterTest, constructor)
   {
-    DateParameter parameter{1989, 6, 1, 10, 52, 13};
+    const DateParameter parameter{1989, 6, 1, 10, 52, 13};
 
     ASSERT_EQ(1989, parameter.getYear());
     ASSERT_EQ(6, parameter.getMonth());
@@ -37,53 +37,53 @@ namespace
 
   TEST_F(DateParameterTest, operator_equals)
   {
-    DateParameter requiredBirthday{1989, 6, 1, 10, 52, 13};
-    DateParameter hisBirthday{1989, 6, 1, 10, 52, 13};
+    const DateParameter requiredBirthday{1989, 6, 1, 10, 52, 13};
+    const DateParameter hisBirthday{1989, 6, 1, 10, 52, 13};
 
     ASSERT_TRUE(requiredBirthday == hisBirthday);
   }
 
   TEST_F(DateParameterTest, operator_equals_not_equals)
   {
-    DateParameter hisBirthday{1989, 6, 1, 10, 52, 00};
-    DateParameter herBirthday{1990, 10, 26, 11, 25, 00};
+    const DateParameter hisBirthday{1989, 6, 1, 10, 52, 00};
+    const DateParameter herBirthday{1990, 10, 26, 11, 25, 00};
 
     ASSERT_FALSE(herBirthday == hisBirthday);
   }
 
   TEST_F(DateParameterTest, getDay)
   {
-    DateParameter parameter{};
+    const DateParameter parameter{};
     ASSERT_EQ(0, parameter.getDay());
   }
 
   TEST_F(DateParameterTest, getHour)
   {
-    DateParameter parameter{};
+    const DateParameter parameter{};
     ASSERT_EQ(0, parameter.getHour());
   }
 
   TEST_F(DateParameterTest, getMinute)
   {
-    DateParameter parameter{};
+    const DateParameter parameter{};
     ASSERT_EQ(0, parameter.getMinute());
   }
 
   TEST_F(DateParameterTest, getMonth)
   {
-    DateParameter parameter{};
+    const DateParameter parameter{};
     ASSERT_EQ(0, parameter.getMonth());
   }
 
   TEST_F(DateParameterTest, getSecond)
   {
-    DateParameter parameter{};
+    const DateParameter parameter{};
     ASSERT_EQ(0, parameter.getSecond());
   }
 
   TEST_F(DateParameterTest, getYear)
   {
-    DateParameter parameter{};
+    const DateParameter parameter{};
     ASSERT_EQ(0, parameter.getYear());
   }
 

+ 4 - 4
test/cases/time/system-time/SystemTimeTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-03-15
-* Changed:         2023-05-18
+* Changed:         2025-12-21
 *
 * */
 
@@ -58,10 +58,10 @@ namespace
 
   TEST_F(SystemTimeTest, setTime)
   {
-    auto parameter = make_shared<SystemTimeParameter>();
-    auto posixClock = make_shared<MockClock>();
+    const auto parameter = make_shared<SystemTimeParameter>();
+    const auto posixClock = make_shared<MockClock>();
     parameter->setClock(posixClock);
-    auto birthday = DateParameter(1990, 10, 26, 11, 25, 00);
+    const auto birthday = DateParameter(1990, 10, 26, 11, 25, 00);
 
     EXPECT_CALL(*posixClock, setTime(birthday)).Times(AtLeast(1));
     ON_CALL(*posixClock, setTime(birthday)).WillByDefault(Return(true));

+ 2 - 2
test/classes/TestException.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-05-18
-* Changed:         2023-05-18
+* Changed:         2025-12-21
 *
 * */
 
@@ -14,7 +14,7 @@ using ls::std::test::TestException;
 using std::string;
 using std::string_view;
 
-TestException::TestException(string_view _message) : message(_message)
+TestException::TestException(const string_view _message) : message(_message)
 {}
 
 TestException::~TestException() noexcept = default;

+ 3 - 3
test/classes/TestHelper.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-05
-* Changed:         2023-05-24
+* Changed:         2025-12-21
 *
 * */
 
@@ -160,8 +160,8 @@ string TestHelper::_reduceSeparators(const string &_path)
 
 string TestHelper::_replaceWrongSeparator(string _path)
 {
-  static const char unixSeparator = '/';
-  static const char windowsSeparator = '\\';
+  static constexpr char unixSeparator = '/';
+  static constexpr char windowsSeparator = '\\';
 
 #if defined(unix) || defined(__APPLE__)
   replace(_path.begin(), _path.end(), windowsSeparator, unixSeparator);

+ 2 - 2
test/classes/core/MathOddValidator.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-13
-* Changed:         2023-02-23
+* Changed:         2025-12-21
 *
 * */
 
@@ -20,7 +20,7 @@ bool MathOddValidator::isOdd() const
   return this->isOddNumber;
 }
 
-void MathOddValidator::validate(int _number)
+void MathOddValidator::validate(const int _number)
 {
   this->isOddNumber = _number % 2 != 0;
 }

+ 3 - 3
test/classes/io/MockFileExistenceEvaluator.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-21
-* Changed:         2023-02-23
+* Changed:         2025-12-21
 *
 * */
 
@@ -16,7 +16,7 @@ using ls::std::core::FileNotFoundException;
 using std::string;
 using test::io::MockFileExistenceEvaluator;
 
-MockFileExistenceEvaluator::MockFileExistenceEvaluator(bool _fileExists) : Class("MockFileExistenceEvaluator"), fileExists(_fileExists)
+MockFileExistenceEvaluator::MockFileExistenceEvaluator(const bool _fileExists) : Class("MockFileExistenceEvaluator"), fileExists(_fileExists)
 {}
 
 MockFileExistenceEvaluator::~MockFileExistenceEvaluator() noexcept = default;
@@ -25,7 +25,7 @@ void MockFileExistenceEvaluator::evaluate()
 {
   if (!this->fileExists)
   {
-    string message = this->getClassName() + " called - this is just a simulation!";
+    const string message = this->getClassName() + " called - this is just a simulation!";
     throw FileNotFoundException{message};
   }
 }

+ 6 - 6
test/classes/io/section-pair/SectionPairDocumentProvider.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-16
-* Changed:         2023-06-06
+* Changed:         2025-12-21
 *
 * */
 
@@ -35,22 +35,22 @@ shared_ptr<SectionPairDocument> SectionPairDocumentProvider::createDocument()
 
   // general section
 
-  shared_ptr<SectionPairSection> generalSection = SectionPairSectionProvider::createSectionWithSandraExample();
+  const shared_ptr<SectionPairSection> generalSection = SectionPairSectionProvider::createSectionWithSandraExample();
   document->add(generalSection);
 
   // physical
 
-  auto physicalSection = make_shared<SectionPairSection>("physical");
+  const auto physicalSection = make_shared<SectionPairSection>("physical");
 
-  auto eyeColor = make_shared<SectionPairRow>("eye-color", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
+  const auto eyeColor = make_shared<SectionPairRow>("eye-color", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
   dynamic_pointer_cast<SectionPairRowSingleValue>(eyeColor->getValue())->set("blue");
   physicalSection->add(eyeColor);
 
-  auto hairColor = make_shared<SectionPairRow>("hair-color", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
+  const auto hairColor = make_shared<SectionPairRow>("hair-color", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
   dynamic_pointer_cast<SectionPairRowSingleValue>(hairColor->getValue())->set("red");
   physicalSection->add(hairColor);
 
-  auto height = make_shared<SectionPairRow>("height", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
+  const auto height = make_shared<SectionPairRow>("height", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
   dynamic_pointer_cast<SectionPairRowSingleValue>(height->getValue())->set("167");
   physicalSection->add(height);
 

+ 12 - 12
test/classes/io/section-pair/SectionPairSectionProvider.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-15
-* Changed:         2023-05-18
+* Changed:         2025-12-21
 *
 * */
 
@@ -29,15 +29,15 @@ shared_ptr<SectionPairSection> SectionPairSectionProvider::createSectionWithSand
 {
   auto generalSection = make_shared<SectionPairSection>("general");
 
-  auto name = make_shared<SectionPairRow>("name", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
+  const auto name = make_shared<SectionPairRow>("name", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
   dynamic_pointer_cast<SectionPairRowSingleValue>(name->getValue())->set("Sandra");
   generalSection->add(name);
 
-  auto age = make_shared<SectionPairRow>("age", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
+  const auto age = make_shared<SectionPairRow>("age", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
   dynamic_pointer_cast<SectionPairRowSingleValue>(age->getValue())->set("24");
   generalSection->add(age);
 
-  auto hobbies = make_shared<SectionPairRow>("hobbies", SectionPairRowEnumType::SECTION_PAIR_ROW_LIST_VALUE);
+  const auto hobbies = make_shared<SectionPairRow>("hobbies", SectionPairRowEnumType::SECTION_PAIR_ROW_LIST_VALUE);
   dynamic_pointer_cast<SectionPairRowListValue>(hobbies->getValue())->add("swimming");
   dynamic_pointer_cast<SectionPairRowListValue>(hobbies->getValue())->add("cycling");
   dynamic_pointer_cast<SectionPairRowListValue>(hobbies->getValue())->add("singing");
@@ -50,17 +50,17 @@ shared_ptr<SectionPairSection> SectionPairSectionProvider::createSectionWithTomE
 {
   auto section = make_shared<SectionPairSection>("general");
 
-  auto name = make_shared<SectionPairRow>("name", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
+  const auto name = make_shared<SectionPairRow>("name", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
   dynamic_pointer_cast<SectionPairRowSingleValue>(name->getValue())->set("Tom");
   section->add(name);
 
-  auto jobs = make_shared<SectionPairRow>("jobs", SectionPairRowEnumType::SECTION_PAIR_ROW_LIST_VALUE);
-  shared_ptr<SectionPairRowListValue> jobList = dynamic_pointer_cast<SectionPairRowListValue>(jobs->getValue());
+  const auto jobs = make_shared<SectionPairRow>("jobs", SectionPairRowEnumType::SECTION_PAIR_ROW_LIST_VALUE);
+  const shared_ptr<SectionPairRowListValue> jobList = dynamic_pointer_cast<SectionPairRowListValue>(jobs->getValue());
   jobList->add("Farmer");
   jobList->add("Bounty Hunter");
   section->add(jobs);
 
-  auto age = make_shared<SectionPairRow>("age", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
+  const auto age = make_shared<SectionPairRow>("age", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
   dynamic_pointer_cast<SectionPairRowSingleValue>(age->getValue())->set("33");
   section->add(age);
 
@@ -84,10 +84,10 @@ byte_field SectionPairSectionProvider::createSerializedSectionWithSandraExample(
 
 byte_field SectionPairSectionProvider::createSerializedSectionWithTomExample(const string &_newLine)
 {
-  byte_field serializedSection = _newLine + "[general]" + _newLine + _newLine;
-  byte_field serializedNameRow = "name=Tom" + _newLine;
-  byte_field serializedJobsRow = "jobs:" + _newLine + "  Farmer" + _newLine + "  Bounty Hunter" + _newLine;
-  byte_field serializedAgeRow = "age=33" + _newLine;
+  const byte_field serializedSection = _newLine + "[general]" + _newLine + _newLine;
+  const byte_field serializedNameRow = "name=Tom" + _newLine;
+  const byte_field serializedJobsRow = "jobs:" + _newLine + "  Farmer" + _newLine + "  Bounty Hunter" + _newLine;
+  const byte_field serializedAgeRow = "age=33" + _newLine;
 
   return serializedSection + serializedNameRow + serializedJobsRow + serializedAgeRow;
 }

+ 7 - 7
test/classes/io/section-pair/SerializableSectionPairRowProvider.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-17
-* Changed:         2023-05-18
+* Changed:         2025-12-21
 *
 * */
 
@@ -29,9 +29,9 @@ shared_ptr<SerializableSectionPairRow> SerializableSectionPairRowProvider::creat
 {
   SerializableSectionPairParameter parameter{};
   parameter.setNewLine(_newLine);
-  auto row = make_shared<SectionPairRow>("favourite-colors", SectionPairRowEnumType::SECTION_PAIR_ROW_LIST_VALUE);
+  const auto row = make_shared<SectionPairRow>("favourite-colors", SectionPairRowEnumType::SECTION_PAIR_ROW_LIST_VALUE);
   parameter.setValue(row);
-  shared_ptr<SectionPairRowListValue> listValue = dynamic_pointer_cast<SectionPairRowListValue>(row->getValue());
+  const shared_ptr<SectionPairRowListValue> listValue = dynamic_pointer_cast<SectionPairRowListValue>(row->getValue());
   listValue->add("blue");
   listValue->add("red");
   listValue->add("purple");
@@ -43,7 +43,7 @@ shared_ptr<SerializableSectionPairRow> SerializableSectionPairRowProvider::creat
 {
   SerializableSectionPairParameter parameter{};
   parameter.setNewLine(_newLine);
-  auto row = make_shared<SectionPairRow>("tmp-key", SectionPairRowEnumType::SECTION_PAIR_ROW_LIST_VALUE);
+  const auto row = make_shared<SectionPairRow>("tmp-key", SectionPairRowEnumType::SECTION_PAIR_ROW_LIST_VALUE);
   parameter.setValue(row);
 
   return make_shared<SerializableSectionPairRow>(parameter);
@@ -53,9 +53,9 @@ shared_ptr<SerializableSectionPairRow> SerializableSectionPairRowProvider::creat
 {
   SerializableSectionPairParameter parameter{};
   parameter.setNewLine(_newLine);
-  auto row = make_shared<SectionPairRow>("favourite-color", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
+  const auto row = make_shared<SectionPairRow>("favourite-color", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
   parameter.setValue(row);
-  shared_ptr<SectionPairRowSingleValue> singleValue = dynamic_pointer_cast<SectionPairRowSingleValue>(row->getValue());
+  const shared_ptr<SectionPairRowSingleValue> singleValue = dynamic_pointer_cast<SectionPairRowSingleValue>(row->getValue());
   singleValue->set("blue");
 
   return make_shared<SerializableSectionPairRow>(parameter);
@@ -65,7 +65,7 @@ shared_ptr<SerializableSectionPairRow> SerializableSectionPairRowProvider::creat
 {
   SerializableSectionPairParameter parameter{};
   parameter.setNewLine(_newLine);
-  auto row = make_shared<SectionPairRow>("tmp-key", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
+  const auto row = make_shared<SectionPairRow>("tmp-key", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
   parameter.setValue(row);
 
   return make_shared<SerializableSectionPairRow>(parameter);