Skip to content

Commit 021b490

Browse files
committed
coverage false negative: NVRO artifacts and defensive guards
1 parent a989425 commit 021b490

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

include/dtlmod/ActorRegistry.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class ActorRegistry {
4646

4747
[[nodiscard]] bool contains(sg4::ActorPtr actor) const noexcept
4848
{
49-
if (!actor)
50-
return false; // Safe handling for noexcept
49+
if (!actor) // LCOV_EXCL_LINE
50+
return false; // LCOV_EXCL_LINE
5151
return actors_.find(actor) != actors_.end();
5252
}
5353

src/FileEngine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ std::shared_ptr<FileTransport> FileEngine::get_file_transport() const
7777
if (!transport) // LCOV_EXCL_LINE
7878
throw TransportEngineMismatchException(XBT_THROW_POINT, "Transport is not a FileTransport"); // LCOV_EXCL_LINE
7979
return transport;
80-
}
80+
} // LCOV_EXCL_LINE
8181

8282
std::string FileEngine::get_path_to_dataset() const
8383
{

src/StagingEngine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ std::shared_ptr<StagingTransport> StagingEngine::get_staging_transport() const
3939
if (!transport) // LCOV_EXCL_LINE
4040
throw TransportEngineMismatchException(XBT_THROW_POINT, "Transport is not a StagingTransport"); // LCOV_EXCL_LINE
4141
return transport;
42-
}
42+
} // LCOV_EXCL_LINE
4343

4444
void StagingEngine::begin_pub_transaction()
4545
{

src/Stream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ std::vector<std::string> Stream::get_all_variables() const
334334
for (const auto& [name, var] : variables_)
335335
variable_names.push_back(name);
336336
return variable_names;
337-
}
337+
} // LCOV_EXCL_LINE
338338

339339
std::shared_ptr<Variable> Stream::inquire_variable(std::string_view name) const
340340
{

0 commit comments

Comments
 (0)