core: rename mbgl namespace to mln (#4487)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -18,18 +18,18 @@ bool TestRunner::startTest(const std::string& manifestBasePath) {
|
||||
}
|
||||
argv.push_back(nullptr);
|
||||
|
||||
std::function<void(mbgl::TestStatus)> testStatus = [&](mbgl::TestStatus status) {
|
||||
mbgl::Log::Info(mbgl::Event::General,
|
||||
"Current finished tests number is '" + std::to_string(status.completed) + "/" +
|
||||
std::to_string(status.total) + "' ");
|
||||
std::function<void(mln::TestStatus)> testStatus = [&](mln::TestStatus status) {
|
||||
mln::Log::Info(mln::Event::General,
|
||||
"Current finished tests number is '" + std::to_string(status.completed) + "/" +
|
||||
std::to_string(status.total) + "' ");
|
||||
};
|
||||
mbgl::Log::Info(mbgl::Event::General, "Start running RenderTestRunner with manifest: '" + manifest + "' ");
|
||||
mln::Log::Info(mln::Event::General, "Start running RenderTestRunner with manifest: '" + manifest + "' ");
|
||||
|
||||
auto result = mbgl::runRenderTests(static_cast<int>(argv.size() - 1), argv.data(), testStatus);
|
||||
auto result = mln::runRenderTests(static_cast<int>(argv.size() - 1), argv.data(), testStatus);
|
||||
|
||||
mbgl::Log::Info(mbgl::Event::General,
|
||||
"End running RenderTestRunner with manifest: '" + manifest + "' with result value " +
|
||||
std::to_string(result));
|
||||
mln::Log::Info(mln::Event::General,
|
||||
"End running RenderTestRunner with manifest: '" + manifest + "' with result value " +
|
||||
std::to_string(result));
|
||||
return result == 0;
|
||||
};
|
||||
|
||||
@@ -43,12 +43,12 @@ bool TestRunner::startTest(const std::string& manifestBasePath) {
|
||||
status = runTestWithManifest(manifestBasePath + "/ios-render-test-runner-metrics.json") && status;
|
||||
#endif
|
||||
} catch (...) {
|
||||
mbgl::Log::Info(mbgl::Event::General, "Failed with exception");
|
||||
mln::Log::Info(mln::Event::General, "Failed with exception");
|
||||
}
|
||||
|
||||
mbgl::Log::Info(mbgl::Event::General, "All tests are finished!");
|
||||
mln::Log::Info(mln::Event::General, "All tests are finished!");
|
||||
if (!status) {
|
||||
mbgl::Log::Info(mbgl::Event::General, "There are failing test cases");
|
||||
mln::Log::Info(mln::Event::General, "There are failing test cases");
|
||||
}
|
||||
return status;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user