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

Method testMove

java/unittests/CursorTest.java:95–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 }
94
95 public void testMove() {
96 byte[] key = new byte[10];
97 byte[] record = new byte[10];
98 try {
99 Cursor c = new Cursor(m_db);
100 key[0] = 0;
101 m_db.insert(key, record);
102 key[0] = 1;
103 m_db.insert(key, record);
104 key[0] = 2;
105 m_db.insert(key, record);
106 key[0] = 3;
107 m_db.insert(key, record);
108 key[0] = 4;
109 m_db.insert(key, record);
110 c.move(Const.UPS_CURSOR_NEXT);
111 c.move(Const.UPS_CURSOR_NEXT);
112 c.move(Const.UPS_CURSOR_PREVIOUS);
113 c.move(Const.UPS_CURSOR_LAST);
114 c.move(Const.UPS_CURSOR_FIRST);
115 }
116 catch (DatabaseException err) {
117 fail("DatabaseException " + err.getMessage());
118 }
119 }
120
121 public void testMoveNegative() {
122 try {

Callers

nothing calls this directly

Calls 3

moveMethod · 0.95
insertMethod · 0.45
getMessageMethod · 0.45

Tested by

no test coverage detected