mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
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:
parent
484e8e64a6
commit
9f2ac78609
28 changed files with 109 additions and 68 deletions
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue