testCombination

Test writing & loading of the given combination of struct types on a virtual file

Depending on the exact combinations, the key structs should offer the following methods:

* compare ( <other_key_struct> * ) - compare the two structs * K old() - convert this struct to the older one

The value structs should offer only a compare function.

version(unittest)
void
testCombination
(
K
V
KNew
VNew
istring custom_dump = ""
)
(
size_t iterations
)

Parameters

K

type of the key to write

V

type of the value to write

KNew

type of the key to read, automatic conversion will happen

VNew

type of the value to read, automatic conversion will happen

custom_dump

optional, custom code to use for dumping the data. The code is expected to define a variable "header_size" containing the size of the header

Meta