Split filters into libraries where applicable. (#6293)

* Split filters into libraries where applicable.

Took 23 minutes

Took 2 minutes

* Include filter string.

Took 5 minutes

---------

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
BruebachL
2025-11-09 12:19:27 +01:00
committed by GitHub
parent 484e8e64a6
commit 9f2ac78609
28 changed files with 109 additions and 68 deletions

View File

@@ -31,20 +31,11 @@ add_test(NAME carddatabase_test COMMAND carddatabase_test)
# ------------------------
# Filter String Test
# ------------------------
add_executable(
filter_string_test
${MOCKS_SOURCES}
${VERSION_STRING_CPP}
../../cockatrice/src/filters/filter_card.cpp
../../cockatrice/src/filters/filter_string.cpp
../../cockatrice/src/filters/filter_tree.cpp
filter_string_test.cpp
mocks.cpp
)
add_executable(filter_string_test ${MOCKS_SOURCES} ${VERSION_STRING_CPP} filter_string_test.cpp mocks.cpp)
target_link_libraries(
filter_string_test
PRIVATE libcockatrice_card
PRIVATE libcockatrice_filters
PRIVATE Threads::Threads
PRIVATE ${GTEST_BOTH_LIBRARIES}
PRIVATE ${TEST_QT_MODULES}

View File

@@ -1,8 +1,8 @@
#include "../../cockatrice/src/filters/filter_string.h"
#include "mocks.h"
#include "test_card_database_path_provider.h"
#include "gtest/gtest.h"
#include <libcockatrice/filters/filter_string.h>
#include <libcockatrice/interfaces/noop_card_preference_provider.h>
#include <libcockatrice/interfaces/noop_card_set_priority_controller.h>