mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
Antithesis instrumentation improvements (#5213)
* Rename ASSERT to XRPL_ASSERT * Upgrade to Anthithesis SDK 0.4.4, and use new 0.4.4 features * automatic cast to bool, like assert * Add instrumentation workflow to verify build with instrumentation enabled
This commit is contained in:
@@ -55,8 +55,8 @@ public:
|
||||
|
||||
if (size)
|
||||
{
|
||||
ASSERT(
|
||||
data != nullptr,
|
||||
XRPL_ASSERT(
|
||||
data,
|
||||
"ripple::Serializer::Serializer(void const*) : non-null input");
|
||||
std::memcpy(mData.data(), data, size);
|
||||
}
|
||||
@@ -333,7 +333,8 @@ Serializer::addVL(Iter begin, Iter end, int len)
|
||||
len -= begin->size();
|
||||
#endif
|
||||
}
|
||||
ASSERT(len == 0, "ripple::Serializer::addVL : length matches distance");
|
||||
XRPL_ASSERT(
|
||||
len == 0, "ripple::Serializer::addVL : length matches distance");
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user