tagion.testbench.dart.dart_helper_functions

Helper functions for interfacing with the DART.

Members

Functions

getFingerprints
DARTIndex[] getFingerprints(Document doc, DART db)

Helper method to retrieve fingerprints from a Document

getRead
Document getRead(DARTIndex[] fingerprints, HiRPC hirpc, DART db)

Reads a list of DARTindices and returnts the document

getRim
Document getRim(Rims rim, HiRPC hirpc, DART db)

Takes a Rim and returns the document.

goToSplit
Document goToSplit(Rims rim, HiRPC hirpc, DART db)

Traverses dart until a split occurs.

putInSector
ulong putInSector(ulong archive, ushort angle, ushort size)

Changes the sector in which the archive is created in. This is for testing only an angle of the database.

randomAdd
DARTIndex[] randomAdd(Sequence!ulong[] states, MinstdRand0 rnd, DART db)

Adds archive in a shuffled random order based on the sequence states.

randomRemove
void randomRemove(DARTIndex[] dart_indices, MinstdRand0 rnd, DART db)

Removes archive in a random order.

syncDarts
void syncDarts(DART db1, DART db2, ushort from, ushort to)

Syncs to darts