Skip to content

Commit

Permalink
Exclude DbInterface in PR coverage check (sonic-net#224)
Browse files Browse the repository at this point in the history
Summary:
Fixes # (issue)
Linkmgrd unit tests overrides DbInterface functions with fake handlers and verified the invoking counters instead of interacting with real Redis Dbs.

Hence, excluding Dbinterface.cpp from coverage checker.

sign-off: Jing Zhang [email protected]
  • Loading branch information
zjswhhh authored Dec 6, 2023
1 parent 489f6ce commit e420df4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/DbInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ DbInterface::DbInterface(mux::MuxManager *muxManager, boost::asio::io_service *i
{
}

// GCOVR_EXCL_START

//
// ---> getMuxState(const std::string &portName);
Expand Down Expand Up @@ -1557,4 +1558,6 @@ void DbInterface::handleSwssNotification()
mMuxManagerPtr->terminate();
}

// GCOVR_EXCL_STOP

} /* namespace common */

0 comments on commit e420df4

Please sign in to comment.