20 #include <ripple/nodestore/DummyScheduler.h>
21 #include <ripple/nodestore/Manager.h>
22 #include <ripple/nodestore/impl/DecodedBlob.h>
23 #include <ripple/nodestore/impl/EncodedBlob.h>
24 #include <test/nodestore/TestBase.h>
59 for (
int i = 0; i < batch.size(); ++i)
66 BEAST_EXPECT(decoded.
wasOk());
73 BEAST_EXPECT(
isSame(batch[i],
object));
bool wasOk() const noexcept
Determine if the decoding was successful.
void testBatches(std::uint64_t const seedValue)
Parsed key/value blob into NodeObject components.
static bool areBatchesEqual(Batch const &lhs, Batch const &rhs)
BEAST_DEFINE_TESTSUITE(Backend, ripple_core, ripple)
std::shared_ptr< NodeObject > createObject()
Create a NodeObject from this data.
void testBlobs(std::uint64_t const seedValue)
void const * getData() const noexcept
static const int numObjectsToTest
static Batch createPredictableBatch(int numObjects, std::uint64_t seed)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::size_t getSize() const noexcept
Convert a NodeObject from in-memory to database format.
bool isSame(std::shared_ptr< NodeObject > const &lhs, std::shared_ptr< NodeObject > const &rhs)
Returns true if objects are identical.
void const * getKey() const noexcept