lib: replace mu-bookmarks with mu-query-macros

And add some unit tests.
This commit is contained in:
Dirk-Jan C. Binnema
2023-09-11 23:52:38 +03:00
parent e290158bcd
commit 8287b9802e
6 changed files with 256 additions and 234 deletions

View File

@ -27,7 +27,7 @@ lib_mu=static_library(
'mu-store.cc',
'mu-xapian-db.cc',
# querying
'mu-bookmarks.cc',
'mu-query-macros.cc',
'mu-query-match-deciders.cc',
'mu-query-parser.cc',
'mu-query-processor.cc',
@ -114,6 +114,13 @@ test('test-config',
cpp_args: ['-DBUILD_TESTS'],
dependencies: [glib_dep, lib_mu_dep]))
test('test-query-macros',
executable('test-query-macros',
'mu-query-macros.cc',
install: false,
cpp_args: ['-DBUILD_TESTS'],
dependencies: [lib_mu_dep]))
test('test-query-processor',
executable('test-query-processor',
'mu-query-processor.cc',