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

Function test_getset

tests/ldbs.cc:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 }
31}
32static void test_getset()
33{
34 LDBS ldbs;
35
36 uint32_t block1 = ldbs.put(Bytes{1}, 1);
37 uint32_t block2 = ldbs.put(Bytes{2}, 2);
38 assert(block1 != block2);
39
40 assert(ldbs.get(block1) == Bytes{1});
41 assert(ldbs.get(block2) == Bytes{2});
42}
43
44static void test_write()
45{

Callers 1

mainFunction · 0.85

Calls 2

putMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected