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:
Bronek Kozicki
2024-12-16 22:48:33 +00:00
committed by GitHub
parent ea1fffeebf
commit eabca8439f
223 changed files with 1452 additions and 1344 deletions

View File

@@ -91,7 +91,7 @@ public:
return true;
if (!digest_ || !other.digest_)
return false;
ASSERT(
XRPL_ASSERT(
presets_ == other.presets_,
"ripple::Rules::Impl::operator==(Impl) const : input presets do "
"match");
@@ -121,7 +121,7 @@ Rules::presets() const
bool
Rules::enabled(uint256 const& feature) const
{
ASSERT(impl_ != nullptr, "ripple::Rules::enabled : initialized");
XRPL_ASSERT(impl_, "ripple::Rules::enabled : initialized");
// The functionality of the "NonFungibleTokensV1_1" amendment is
// precisely the functionality of the following three amendments
@@ -140,7 +140,7 @@ Rules::enabled(uint256 const& feature) const
bool
Rules::operator==(Rules const& other) const
{
ASSERT(
XRPL_ASSERT(
impl_ && other.impl_,
"ripple::Rules::operator==(Rules) const : both initialized");
if (impl_.get() == other.impl_.get())