mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-22 20:15:51 +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:
@@ -221,7 +221,7 @@ FeatureCollections::FeatureCollections()
|
||||
std::optional<uint256>
|
||||
FeatureCollections::getRegisteredFeature(std::string const& name) const
|
||||
{
|
||||
ASSERT(
|
||||
XRPL_ASSERT(
|
||||
readOnly.load(),
|
||||
"ripple::FeatureCollections::getRegisteredFeature : startup completed");
|
||||
Feature const* feature = getByName(name);
|
||||
@@ -305,7 +305,7 @@ FeatureCollections::registrationIsDone()
|
||||
size_t
|
||||
FeatureCollections::featureToBitsetIndex(uint256 const& f) const
|
||||
{
|
||||
ASSERT(
|
||||
XRPL_ASSERT(
|
||||
readOnly.load(),
|
||||
"ripple::FeatureCollections::featureToBitsetIndex : startup completed");
|
||||
|
||||
@@ -319,7 +319,7 @@ FeatureCollections::featureToBitsetIndex(uint256 const& f) const
|
||||
uint256 const&
|
||||
FeatureCollections::bitsetIndexToFeature(size_t i) const
|
||||
{
|
||||
ASSERT(
|
||||
XRPL_ASSERT(
|
||||
readOnly.load(),
|
||||
"ripple::FeatureCollections::bitsetIndexToFeature : startup completed");
|
||||
Feature const& feature = getByIndex(i);
|
||||
@@ -329,7 +329,7 @@ FeatureCollections::bitsetIndexToFeature(size_t i) const
|
||||
std::string
|
||||
FeatureCollections::featureToName(uint256 const& f) const
|
||||
{
|
||||
ASSERT(
|
||||
XRPL_ASSERT(
|
||||
readOnly.load(),
|
||||
"ripple::FeatureCollections::featureToName : startup completed");
|
||||
Feature const* feature = getByFeature(f);
|
||||
|
||||
Reference in New Issue
Block a user