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

Method testGetKey

java/unittests/CursorTest.java:191–205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189 }
190
191 public void testGetKey() {
192 byte[] key = new byte[10];
193 key[0] = 0x13;
194 byte[] record = new byte[10];
195 try {
196 Cursor c = new Cursor(m_db);
197 m_db.insert(key, record);
198 c.moveFirst();
199 byte[] k = c.getKey();
200 assertByteArrayEquals(key, k);
201 }
202 catch (DatabaseException err) {
203 fail("DatabaseException " + err.getMessage());
204 }
205 }
206
207 public void testGetRecord() {
208 byte[] key = new byte[10];

Callers

nothing calls this directly

Calls 5

moveFirstMethod · 0.95
getKeyMethod · 0.95
assertByteArrayEqualsMethod · 0.95
insertMethod · 0.45
getMessageMethod · 0.45

Tested by

no test coverage detected