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

Method testGetRecord

java/unittests/CursorTest.java:207–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205 }
206
207 public void testGetRecord() {
208 byte[] key = new byte[10];
209 byte[] record = new byte[10];
210 record[0] = 0x14;
211 try {
212 Cursor c = new Cursor(m_db);
213 m_db.insert(key, record);
214 c.moveFirst();
215 byte[] r = c.getRecord();
216 assertByteArrayEquals(record, r);
217 }
218 catch (DatabaseException err) {
219 fail("DatabaseException " + err.getMessage());
220 }
221 }
222
223 public void testOverwrite() {
224 byte[] key = new byte[10];

Callers

nothing calls this directly

Calls 5

moveFirstMethod · 0.95
getRecordMethod · 0.95
assertByteArrayEqualsMethod · 0.95
insertMethod · 0.45
getMessageMethod · 0.45

Tested by

no test coverage detected