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

Method testFind

java/unittests/CursorTest.java:242–258  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240 }
241
242 public void testFind() {
243 byte[] key = new byte[10];
244 byte[] record = new byte[10];
245 key[0] = 0x14;
246 try {
247 Cursor c = new Cursor(m_db);
248 m_db.insert(key, record);
249 c.find(key);
250 byte[] k = c.getKey();
251 byte[] r = c.getRecord();
252 assertByteArrayEquals(key, k);
253 assertByteArrayEquals(record, r);
254 }
255 catch (DatabaseException err) {
256 fail("DatabaseException " + err.getMessage());
257 }
258 }
259
260 public void testInsertByteArrayByteArray() {
261 byte[] key = new byte[10];

Callers

nothing calls this directly

Calls 6

findMethod · 0.95
getKeyMethod · 0.95
getRecordMethod · 0.95
assertByteArrayEqualsMethod · 0.95
insertMethod · 0.45
getMessageMethod · 0.45

Tested by

no test coverage detected