lib: unit tests: improve / better coverage

This commit is contained in:
Dirk-Jan C. Binnema
2023-09-13 23:02:53 +03:00
parent 7c16d080d2
commit 9dcbe1d96c
15 changed files with 304 additions and 147 deletions

View File

@ -22,8 +22,6 @@
using namespace Mu;
// LCOV_EXCL_STOP
#if BUILD_TESTS
#include "mu-test-utils.hh"
@ -75,17 +73,14 @@ test_regex_replace()
int
main(int argc, char* argv[])
try {
{
mu_test_init(&argc, &argv);
g_test_add_func("/regex/match", test_regex_match);
g_test_add_func("/regex/match2", test_regex_match2);
g_test_add_func("/regex/replace", test_regex_replace);
return g_test_run();
} catch (const std::runtime_error& re) {
mu_printerrln("{}", re.what());
return 1;
return g_test_run();
}
#endif /*BUILD_TESTS*/