summaryrefslogtreecommitdiff
path: root/lib/utils/tests
AgeCommit message (Collapse)Author
2026-01-27utils: rework MU_ENABLE_BITOPS using C++20 codeDirk-Jan C. Binnema
Instead of macros, we using C++20 concepts to define the helpers to deal with bitops on enum-class conveniently. x# Please enter the commit message for your changes. Lines starting
2025-11-19test-utils: fix some clang-tidy warningsDirk-Jan C. Binnema
2025-10-25utils: add utf8_clean helperDirk-Jan C. Binnema
To morph text into valid utf8 if it isn't already.
2025-08-15tests: only build when neededDirk-Jan C. Binnema
Build the tests lazily, i.e., not before `meson test`. This helps with build-times.
2024-05-07logging: rework a bit, maybe support syslogDirk-Jan C. Binnema
Seems journal logging fails on NetBSD (no surprise), but has some unwanted/not-fully-understood side-effects. In any case, outside Linux there's no use in even trying to use journald; so we don't do that anymore. Add conditional support for syslog (requires glib 2.80).
2024-04-14test-mu-utils: update parse_date_time testsDirk-Jan C. Binnema
We're using ::time_t now.
2024-01-06tests: move to tests/, make optionalDirk-Jan C. Binnema
While not recommended, sometimes it can be useful to disable building the unit tests. This can be done now with meson -Dtests=disabled build
2023-09-24improve unit testsDirk-Jan C. Binnema
2023-09-21mu-utils: improve testsDirk-Jan C. Binnema
2023-09-17utils: add utf8_wordbreakDirk-Jan C. Binnema
Determine if a string has wordbreaks in a mostly Xapian-compatible way. We need this to determine what strings should be considered "phrases".
2023-09-13lib: unit tests: improve / better coverageDirk-Jan C. Binnema
2023-09-09utils: handle "unbroken" scriptsDirk-Jan C. Binnema
Do not removing combining characters from scripts without explicit word boundaries, such as those for CJK. Reuse some Xapian code for that.
2023-08-19remove Mu::format, use mu_formatDirk-Jan C. Binnema
Use the new fmt-based formatting.
2023-07-06fmt: more update to use new fmt-based APIsDirk-Jan C. Binnema
2023-01-29utils: add Regex::replace + unit testsDirk-Jan C. Binnema
2023-01-29utils: remove some dead test codeDirk-Jan C. Binnema
2023-01-14utils: get rid of mu-util.[ch]Dirk-Jan C. Binnema
It was getting old... Remove the unused parts, refactor the few parts still in use.
2022-12-30many: use Mu::Regex instead of std::regexDirk-Jan C. Binnema
The former is PCRE-compatible, and faster than std::regex.
2022-11-07command-handler: rework for new sexpDirk-Jan C. Binnema
Rework / cleanup the command-handler (and rename for command-parser). Update tests (and integrate with sources)
2022-10-02utils: add helpers for assoc-pairsDirk-Jan C. Binnema
Add some unit-test, too.
2022-08-11tests: update test helpers and usersDirk-Jan C. Binnema
Move test-mu-common to mu-test-utils. Use mu_test_init as a wrapper for g_test_init. Update users.
2022-06-16utils: add regex-splitDirk-Jan C. Binnema
2022-06-09test-utils: add error testDirk-Jan C. Binnema
2022-06-04utils: improve locale_workaroundDirk-Jan C. Binnema
Fixes: #2270.
2022-06-02lib: improve test coverageDirk-Jan C. Binnema
Add a bunch of tests
2022-05-24tests: improve coverage a bitDirk-Jan C. Binnema
2022-05-23lib: improve coverage a bitDirk-Jan C. Binnema
2022-05-19lib: remove some dead code (mu-str/utils)Dirk-Jan C. Binnema
Remove unused library code; recycle some electrons.
2022-05-18tests: skip missing timezones in queries, tooDirk-Jan C. Binnema
2022-05-18test-utils: Skip test if timezone is not availableDirk-Jan C. Binnema
2022-05-05store: ensure updates update message sexp tooDirk-Jan C. Binnema
And turn all "add" into "replace" so old messages get removed. Update tests too.
2022-04-30utils: update date/size parsing, factor out formatDirk-Jan C. Binnema
And update tests
2022-03-19utils: improve split / joinDirk-Jan C. Binnema
2022-02-22utils: rework Mu::splitDirk-Jan C. Binnema
And add some tests, cleanups.
2022-02-21tests: update namingDirk-Jan C. Binnema
2022-02-07build: fix some scan-build warningsDirk-Jan C. Binnema
2021-11-08tests: move to subdir, move to mesonDirk-Jan C. Binnema
De-clutter the source directories a bit. Ensure tests build with meson, and remove from autotools in a few places (no need to do things twice).