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

Exclude from coverage a bunch of hard-to-reach code

parent 8899c11b
No related branches found
No related tags found
1 merge request!199Integrate checkpointing
......@@ -36,7 +36,9 @@ class ASTCheckpointsInfo
return i;
}
}
// LCOV_EXCL_START
throw UnexpectedError("Could not find node");
// LCOV_EXCL_STOP
}
const ASTCheckpoint&
......
......@@ -16,10 +16,12 @@ CheckpointResumeRepository::checkpoint(const ASTNodeDataType& data_type,
const CheckpointFunction& function = i_dt_function->second;
function(symbol_name, embedded_data, file, checkpoint_group, symbol_table_group);
} else {
// LCOV_EXCL_START
std::ostringstream error_msg;
error_msg << "cannot find checkpointing function for type '" << rang::fgB::yellow << data_type_name
<< rang::fg::reset << "'";
throw UnexpectedError(error_msg.str());
// LCOV_EXCL_STOP
}
}
......@@ -33,10 +35,12 @@ CheckpointResumeRepository::resume(const ASTNodeDataType& data_type,
const ResumeFunction& function = i_dt_function->second;
return function(symbol_name, symbol_table_group);
} else {
// LCOV_EXCL_START
std::ostringstream error_msg;
error_msg << "cannot find resuming function for type '" << rang::fgB::yellow << data_type_name << rang::fg::reset
<< "'";
throw UnexpectedError(error_msg.str());
// LCOV_EXCL_STOP
}
}
......
......@@ -34,12 +34,14 @@ Messenger::Messenger([[maybe_unused]] int& argc, [[maybe_unused]] char* argv[],
MPI_Init(&argc, &argv);
if (CommunicatorManager::hasSplitColor()) {
// LCOV_EXCL_START
int key = 0;
auto res = MPI_Comm_split(MPI_COMM_WORLD, CommunicatorManager::splitColor(), key, &m_pugs_comm_world);
if (res) {
MPI_Abort(MPI_COMM_WORLD, res);
}
// LCOV_EXCL_STOP
}
m_rank = [&]() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment