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

Method testErase

java/unittests/CursorTest.java:297–316  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

295 }
296
297 public void testErase() {
298 byte[] key = new byte[10];
299 byte[] record = new byte[10];
300 Cursor c = null;
301 try {
302 c = new Cursor(m_db);
303 m_db.insert(key, record);
304 c.find(key);
305 c.erase();
306 }
307 catch (DatabaseException err) {
308 fail("DatabaseException " + err.getMessage());
309 }
310 try {
311 c.find(key);
312 }
313 catch (DatabaseException err) {
314 assertEquals(Const.UPS_KEY_NOT_FOUND, err.getErrno());
315 }
316 }
317
318 public void testGetDuplicateCount() {
319 byte[] key = new byte[10];

Callers

nothing calls this directly

Calls 5

findMethod · 0.95
eraseMethod · 0.95
getErrnoMethod · 0.80
insertMethod · 0.45
getMessageMethod · 0.45

Tested by

no test coverage detected