Skip to content

Commit

Permalink
Exclude deprecated function from code coverage test
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
  • Loading branch information
azeey committed Mar 20, 2024
1 parent 10d6087 commit 35d1c83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NodeShared.cc
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ void sendAuthErrorHelper(zmq::socket_t &_socket, const std::string &_err)
}

//////////////////////////////////////////////////
// LCOV_EXCL_START
NodeShared *NodeShared::Instance()
{
// This is a deprecated function, but since it's public, the following ensures
Expand All @@ -160,6 +161,7 @@ NodeShared *NodeShared::Instance()
static std::shared_ptr<NodeShared> nodeShared = NodeShared::SharedInstance();
return nodeShared.get();
}
// LCOV_EXCL_STOP

//////////////////////////////////////////////////
std::shared_ptr<NodeShared> NodeShared::SharedInstance()
Expand Down

0 comments on commit 35d1c83

Please sign in to comment.