1#include <test/nodestore/TestBase.h> 
    3#include <xrpl/nodestore/detail/DecodedBlob.h> 
    4#include <xrpl/nodestore/detail/EncodedBlob.h> 
   39        for (
int i = 0; i < 
batch.size(); ++i)
 
   46            BEAST_EXPECT(decoded.
wasOk());
 
 
 
   69BEAST_DEFINE_TESTSUITE(NodeStoreBasic, nodestore, 
ripple);
 
testcase_t testcase
Memberspace for declaring test cases.
 
Parsed key/value blob into NodeObject components.
 
std::shared_ptr< NodeObject > createObject()
Create a NodeObject from this data.
 
bool wasOk() const noexcept
Determine if the decoding was successful.
 
Convert a NodeObject from in-memory to database format.
 
void const * getKey() const noexcept
 
std::size_t getSize() const noexcept
 
void const * getData() const noexcept
 
void testBlobs(std::uint64_t const seedValue)
 
void testBatches(std::uint64_t const seedValue)
 
void run() override
Runs the suite.
 
static int const numObjectsToTest
 
static Batch createPredictableBatch(int numObjects, std::uint64_t seed)
 
static bool areBatchesEqual(Batch const &lhs, Batch const &rhs)
 
bool isSame(std::shared_ptr< NodeObject > const &lhs, std::shared_ptr< NodeObject > const &rhs)
Returns true if objects are identical.
 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.