MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / test_write

Function test_write

tests/ldbs.cc:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44static void test_write()
45{
46 LDBS ldbs;
47
48 uint32_t block1 = ldbs.put(Bytes{1}, 1);
49 uint32_t block2 = ldbs.put(Bytes{2}, 2);
50 Bytes data = ldbs.write(0x1234);
51
52 assertBytes(testdata, data);
53}
54
55static void test_read()
56{

Callers 1

mainFunction · 0.85

Calls 3

assertBytesFunction · 0.85
putMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected