diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..bd951fb --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "tests/lib/Catch2"] + path = tests/lib/Catch2 + url = https://github.com/catchorg/Catch2.git +[submodule "tests/lib/mdlp"] + path = tests/lib/mdlp + url = https://github.com/rmontanana/mdlp diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c2107e..cba1f1e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,7 +39,7 @@ add_subdirectory(config) # ------- if (ENABLE_TESTING) MESSAGE("Testing enabled") - add_git_submodule("tests/lib/catch2") + add_git_submodule("tests/lib/Catch2") add_git_submodule("tests/lib/Files") add_git_submodule("tests/lib/mdlp") include(CTest) diff --git a/LICENSE b/LICENSE index c160124..800d41c 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 rmontanana +Copyright (c) 2024 Ricardo Montañana Gómez Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/folding.hpp b/folding.hpp index 4595da2..b0b40b2 100644 --- a/folding.hpp +++ b/folding.hpp @@ -1,3 +1,9 @@ +// *************************************************************** +// SPDX-FileCopyrightText: Copyright 2024 Ricardo Montañana Gómez +// SPDX-FileType: SOURCE +// SPDX-License-Identifier: MIT +// *************************************************************** + #pragma once #include #include diff --git a/gcovr.cfg b/gcovr.cfg deleted file mode 100644 index 89e0877..0000000 --- a/gcovr.cfg +++ /dev/null @@ -1,4 +0,0 @@ -filter = src/ -exclude-directories = build_debug/lib/ -print-summary = yes -sort-percentage = yes diff --git a/tests/TestFolding.cc b/tests/TestFolding.cc index 0e49865..9a0053d 100644 --- a/tests/TestFolding.cc +++ b/tests/TestFolding.cc @@ -1,3 +1,9 @@ +// *************************************************************** +// SPDX-FileCopyrightText: Copyright 2024 Ricardo Montañana Gómez +// SPDX-FileType: SOURCE +// SPDX-License-Identifier: MIT +// *************************************************************** + #include #include #include diff --git a/tests/lib/Catch2 b/tests/lib/Catch2 new file mode 160000 index 0000000..4e8d92b --- /dev/null +++ b/tests/lib/Catch2 @@ -0,0 +1 @@ +Subproject commit 4e8d92bf02f7d1c8006a0e7a5ecabd8e62d98502 diff --git a/tests/lib/Files/ArffFiles.cc b/tests/lib/Files/ArffFiles.cc index 99f29bd..d333d1e 100644 --- a/tests/lib/Files/ArffFiles.cc +++ b/tests/lib/Files/ArffFiles.cc @@ -1,3 +1,9 @@ +// *************************************************************** +// SPDX-FileCopyrightText: Copyright 2024 Ricardo Montañana Gómez +// SPDX-FileType: SOURCE +// SPDX-License-Identifier: MIT +// *************************************************************** + #include "ArffFiles.h" #include #include diff --git a/tests/lib/Files/ArffFiles.h b/tests/lib/Files/ArffFiles.h index 25e5a8c..c53534c 100644 --- a/tests/lib/Files/ArffFiles.h +++ b/tests/lib/Files/ArffFiles.h @@ -1,3 +1,9 @@ +// *************************************************************** +// SPDX-FileCopyrightText: Copyright 2024 Ricardo Montañana Gómez +// SPDX-FileType: SOURCE +// SPDX-License-Identifier: MIT +// *************************************************************** + #ifndef ARFFFILES_H #define ARFFFILES_H @@ -5,15 +11,6 @@ #include class ArffFiles { -private: - std::vector lines; - std::vector> attributes; - std::string className; - std::string classType; - std::vector> X; - std::vector y; - void generateDataset(int); - void loadCommon(std::string); public: ArffFiles(); void load(const std::string&, bool = true); @@ -27,6 +24,15 @@ public: std::vector& getY(); std::vector> getAttributes() const; static std::vector factorize(const std::vector& labels_t); +private: + std::vector lines; + std::vector> attributes; + std::string className; + std::string classType; + std::vector> X; + std::vector y; + void generateDataset(int); + void loadCommon(std::string); }; #endif \ No newline at end of file diff --git a/tests/lib/mdlp b/tests/lib/mdlp new file mode 160000 index 0000000..236d1b2 --- /dev/null +++ b/tests/lib/mdlp @@ -0,0 +1 @@ +Subproject commit 236d1b2f8be185039493fe7fce04a83e02ed72e5