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

Method testCursor

java/unittests/TransactionTest.java:118–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116 }
117
118 public void testCursor() {
119 Environment env = new Environment();
120 Transaction txn;
121 byte[] key = new byte[10];
122 byte[] record = new byte[10];
123 try {
124 env.create("jtest.db", Const.UPS_ENABLE_TRANSACTIONS);
125 Database db = env.createDatabase((short)1);
126 txn = env.begin();
127 Cursor c = new Cursor(db, txn);
128 db.insert(txn, key, record);
129 c.moveFirst();
130 c.close();
131 db.close();
132 env.close();
133 }
134 catch (DatabaseException err) {
135 fail("DatabaseException " + err.getMessage());
136 }
137 }
138}

Callers

nothing calls this directly

Calls 9

createMethod · 0.95
createDatabaseMethod · 0.95
beginMethod · 0.95
insertMethod · 0.95
moveFirstMethod · 0.95
closeMethod · 0.95
closeMethod · 0.95
closeMethod · 0.95
getMessageMethod · 0.45

Tested by

no test coverage detected