86464cd083
modernization: tweaks for c++20
...
Update various places for what we can do with C++20:
- ends_with / starts_with
- std::to_array
- using instead of typedef
- designated initializers
- "[[maybe_unused]]" instead of G_GNUC_UNUSED
Also remove some unnecessary 'static'
2026-08-20 15:05:30 -07:00
8d3b65c5d8
utils: refactor count_nl from mu-cmd-find
...
And update users.
Please enter the commit message for your changes. Lines starting
2025-07-27 19:39:23 +03:00
452969355c
mu-test: add valgrind check
...
Make it a bit easier to skip some tests when running under valgrind.
2025-05-24 19:18:10 +03:00
af9eb36ca0
unit-tests: modernize
...
Use TempDir, join_paths etc.
2023-09-11 23:51:37 +03:00
e1308a9b40
utils: small tweaks
2023-08-27 11:07:55 +03:00
3a38d6366a
mu-view: test locale to C for tests
2023-07-29 17:25:07 +03:00
766d1849ff
test-utils: add TempTz, RAII temporary timezone
2023-07-29 16:39:08 +03:00
1f0342a91f
mu-view: add unit-test
2023-07-28 19:43:46 +03:00
cf6c5a36d7
utils: rework running system commands
...
Use g_spawn and pass arguments, so we don't involve a shell that needs
escaping etc.
Improve error handling.
2023-07-18 20:19:27 +03:00
cc65b8b401
utils: add some more helpers for test code
...
Creating and removing (temp) dirs, running mu commands.
2023-07-10 23:15:40 +03:00
742ca33740
utils: rework Mu::Error and g_ logging macros with fmt
...
A bit more C++ template magic to remove a lot of code.
2023-07-05 23:07:11 +03:00
e43452fa18
test: don't "uniqify" link names during test
2023-04-09 11:02:58 +03:00
39101cf583
mu-find: brush off --format=links unit test
...
Enable it by default, and modernize it a little bit
2023-03-28 22:26:56 +03:00
317fe53ff7
tests: update test helpers and users
...
Move test-mu-common to mu-test-utils. Use mu_test_init as a wrapper for
g_test_init. Update users.
2022-08-11 22:55:10 +03:00