lib: unit tests: improve / better coverage
This commit is contained in:
@ -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*/
|
||||
|
||||
Reference in New Issue
Block a user