@Test
	public void testEmptyLongKeyIterator() throws IOException {
		createRandomTableRecords(DBTestUtils.ALL_TYPES, 0, 1);

		saveAsAndReopen(dbName);

		Table table = dbh.getTable(table1Name);
		assertEquals(0, table.getRecordCount());

		dbh.undo();
		dbh.redo();

		long startKey = 1500L;
		long minKey = 100L;
		long maxKey = 5000L;
		DBLongIterator iter = table.longKeyIterator();
		assertTrue(!iter.hasPrevious());
		assertTrue(!iter.hasNext());

		iter = table.longKeyIterator(startKey);
		assertTrue(!iter.hasPrevious());
		assertTrue(!iter.hasNext());

		iter = table.longKeyIterator(minKey, maxKey, startKey);
		assertTrue(!iter.hasPrevious());
		assertTrue(!iter.hasNext());

		startKey = -1L;
		iter = table.longKeyIterator(minKey, maxKey, startKey);
		assertTrue(!iter.hasPrevious());
		assertTrue(!iter.hasNext());

		startKey = 10000L;
		iter = table.longKeyIterator(minKey, maxKey, startKey);
		assertTrue(!iter.hasPrevious());
		assertTrue(!iter.hasNext());
	}
Insert the specified number of records using random keys.

@param recordCnt number of records to insert.
@param varDataSize size of variable length data fields.
@return Record[] records which were inserted.
Ghidra/Framework/DB/src/test/java/db/DBIndexedTableTest.java