MCPcopy Create free account
hub / github.com/cruppstahl/upscaledb / allocFreeTest

Method allocFreeTest

unittests/device.cpp:67–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 }
66
67 void allocFreeTest() {
68 PageProxy pp(lenv(), ldb());
69 DeviceProxy dp(lenv());
70
71 dp.require_open()
72 .alloc_page(pp);
73 REQUIRE(pp.page->data());
74 dp.free_page(pp);
75 }
76
77 void flushTest() {
78 DeviceProxy dp(lenv());

Callers 1

device.cppFile · 0.80

Calls 5

ldbFunction · 0.85
lenvFunction · 0.50
alloc_pageMethod · 0.45
dataMethod · 0.45
free_pageMethod · 0.45

Tested by

no test coverage detected