Skip to content
Snippets Groups Projects
Commit 64bff128 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Do not cover unreachable (safety) lines

parent 54f2df2e
No related branches found
No related tags found
1 merge request!128Feature/unit tests
......@@ -18,6 +18,7 @@ SynchronizerManager::destroy()
Assert(m_instance != nullptr, "SynchronizerManager was not created!");
if (m_instance->m_connectivity_synchronizer_map.size() > 0) {
// LCOV_EXCL_START
std::stringstream error;
error << ": some connectivities are still registered\n";
for (const auto& i_connectivity_synchronizer : m_instance->m_connectivity_synchronizer_map) {
......@@ -25,6 +26,7 @@ SynchronizerManager::destroy()
<< '\n';
}
throw UnexpectedError(error.str());
// LCOV_EXCL_STOP
}
delete m_instance;
m_instance = nullptr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment