chore: exclude all UNREACHABLE blocks from codecov (#5846)

This commit is contained in:
Mayukha Vadari
2025-10-08 04:25:51 -04:00
committed by GitHub
parent 2df730438d
commit 176fd2b6e4
53 changed files with 224 additions and 13 deletions

View File

@@ -284,12 +284,14 @@ public:
{
if (key.type != ltOFFER)
{
// LCOV_EXCL_START
UNREACHABLE(
"ripple::ApplyView::dirAppend : only Offers are appended to "
"book directories");
// Only Offers are appended to book directories. Call dirInsert()
// instead
return std::nullopt;
// LCOV_EXCL_STOP
}
return dirAdd(true, directory, key.key, describe);
}