فهرست منبع

Add "ls_std_boxing" header

This header file replaces the generic header file to remove unnecessary dependencies from "boxing" module tests.
Patrick-Christopher Mattulat 2 سال پیش
والد
کامیت
38c130e6e9

+ 13 - 13
CMakeLists.txt

@@ -192,10 +192,10 @@ endif ()
 # Build Tests (boxing)
 ##########################################################
 
-#if (${LS_STD_BUILD_WITH_TESTS})
-#    message("${MODULE_NAME_BOXING}: Building tests...")
-#    add_executable(${MODULE_NAME_BOXING}_test ${TEST_FILES_BOXING})
-#endif ()
+if (${LS_STD_BUILD_WITH_TESTS})
+    message("${MODULE_NAME_BOXING}: Building tests...")
+    add_executable(${MODULE_NAME_BOXING}_test ${TEST_FILES_BOXING})
+endif ()
 
 ##########################################################
 # Build Tests (core)
@@ -303,15 +303,15 @@ endif ()
 # Linking (boxing)
 ##########################################################
 
-#if (${LS_STD_BUILD_WITH_TESTS})
-#    message("${MODULE_NAME_BOXING}: Linking libraries for test application...")
-#    target_link_libraries(${MODULE_NAME_BOXING}_test
-#            gtest
-#            gmock
-#            gtest_main
-#            "${MODULE_NAME_CORE}"
-#            "${MODULE_NAME_BOXING}")
-#endif ()
+if (${LS_STD_BUILD_WITH_TESTS})
+    message("${MODULE_NAME_BOXING}: Linking libraries for test application...")
+    target_link_libraries(${MODULE_NAME_BOXING}_test
+            gtest
+            gmock
+            gtest_main
+            "${MODULE_NAME_BOXING}"
+            "${MODULE_NAME_CORE}")
+endif ()
 
 ##########################################################
 # Linking (core)

+ 20 - 0
include/ls_std/ls_std_boxing.hpp

@@ -0,0 +1,20 @@
+/*
+ * Author:          Patrick-Christopher Mattulat
+ * Company:         Lynar Studios
+ * E-Mail:          webmaster@lynarstudios.com
+ * Created:         2022-05-13
+ * Changed:         2022-05-13
+ *
+ * */
+
+#ifndef LS_STD_LS_STD_BOXING_HPP
+#define LS_STD_LS_STD_BOXING_HPP
+
+#include <ls_std/boxing/Boolean.hpp>
+#include <ls_std/boxing/Double.hpp>
+#include <ls_std/boxing/Float.hpp>
+#include <ls_std/boxing/Integer.hpp>
+#include <ls_std/boxing/Long.hpp>
+#include <ls_std/boxing/String.hpp>
+
+#endif

+ 3 - 2
test/cases/boxing/BooleanTest.cpp

@@ -3,12 +3,13 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-09
- * Changed:         2022-05-09
+ * Changed:         2022-05-14
  *
  * */
 
 #include <gtest/gtest.h>
-#include <ls_std/ls_std.hpp>
+#include <ls_std/ls_std_core.hpp>
+#include <ls_std/ls_std_boxing.hpp>
 
 namespace
 {

+ 3 - 2
test/cases/boxing/DoubleTest.cpp

@@ -3,12 +3,13 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-14
- * Changed:         2022-05-09
+ * Changed:         2022-05-14
  *
  * */
 
 #include <gtest/gtest.h>
-#include <ls_std/ls_std.hpp>
+#include <ls_std/ls_std_core.hpp>
+#include <ls_std/ls_std_boxing.hpp>
 
 namespace
 {

+ 3 - 2
test/cases/boxing/FloatTest.cpp

@@ -3,12 +3,13 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-14
- * Changed:         2022-05-09
+ * Changed:         2022-05-14
  *
  * */
 
 #include <gtest/gtest.h>
-#include <ls_std/ls_std.hpp>
+#include <ls_std/ls_std_core.hpp>
+#include <ls_std/ls_std_boxing.hpp>
 
 namespace
 {

+ 3 - 2
test/cases/boxing/IntegerTest.cpp

@@ -3,12 +3,13 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-09
- * Changed:         2022-05-09
+ * Changed:         2022-05-14
  *
  * */
 
 #include <gtest/gtest.h>
-#include <ls_std/ls_std.hpp>
+#include <ls_std/ls_std_core.hpp>
+#include <ls_std/ls_std_boxing.hpp>
 
 namespace
 {

+ 3 - 2
test/cases/boxing/LongTest.cpp

@@ -3,12 +3,13 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-17
- * Changed:         2022-05-12
+ * Changed:         2022-05-14
  *
  * */
 
 #include <gtest/gtest.h>
-#include <ls_std/ls_std.hpp>
+#include <ls_std/ls_std_core.hpp>
+#include <ls_std/ls_std_boxing.hpp>
 
 namespace
 {

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

@@ -3,12 +3,12 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-14
- * Changed:         2022-05-06
+ * Changed:         2022-05-14
  *
  * */
 
 #include <gtest/gtest.h>
-#include <ls_std/ls_std.hpp>
+#include <ls_std/ls_std_boxing.hpp>
 
 namespace
 {