Esempio n. 1
0
        public void TestMoveLastWithRMW()
        {
            testName = "TestMoveLastWithRMW";
            testHome = testFixtureHome + "/" + testName;
            Configuration.ClearDir(testHome);

            // Use MoveCursorToLast() as its move function.
            cursorFunc = new CursorMoveFuncDelegate(MoveCursorToLast);

            // Read the last recod with write lock.
            MoveWithRMW(testHome, testName);
        }
Esempio n. 2
0
        public void TestMoveWithRMW()
        {
            testName = "TestMoveWithRMW";
            testHome = testFixtureHome + "/" + testName;
            Configuration.ClearDir(testHome);

            // Use MoveCursor() as its move function.
            cursorFunc = new CursorMoveFuncDelegate(MoveCursor);

            // Move to a specified key and a key/data pair.
            MoveWithRMW(testHome, testName);
        }
Esempio n. 3
0
        public void TestRefreshWithRMW()
        {
            testName = "TestRefreshWithRMW";
            testHome = testFixtureHome + "/" + testName;

            Configuration.ClearDir(testHome);

            cursorFunc = new CursorMoveFuncDelegate(
                MoveCursorToCurrentRec);

            // Read the previous unique record in write lock.
            MoveWithRMW(testHome, testName);
        }
Esempio n. 4
0
        public void TestMovePrevUniqueWithRMW()
        {
            testName = "TestMovePrevDuplicateWithRMW";
            testHome = testFixtureHome + "/" + testName;
            Configuration.ClearDir(testHome);

            /*
             * Use MoveCursorToPrevUnique() as its
             * move function.
             */
            cursorFunc = new CursorMoveFuncDelegate(
                MoveCursorToPrevUnique);

            // Read the previous unique record in write lock.
            MoveWithRMW(testHome, testName);
        }
Esempio n. 5
0
        public void TestMoveNextWithRMW()
        {
            testName = "TestMoveLastWithRMW";
            testHome = testFixtureHome + "/" + testName;
            Configuration.ClearDir(testHome);

            // Use MoveCursorToNext() as its move function.
            cursorFunc = new CursorMoveFuncDelegate(
                MoveCursorToNext);

            /*
             * Read the first record to the fifth record with
             * write lock.
             */
            MoveWithRMW(testHome, testName);
        }
Esempio n. 6
0
        public void TestMoveNextUniqueWithRMW()
        {
            testName = "TestMoveNextUniqueWithRMW";
            testHome = testFixtureHome + "/" + testName;
            Configuration.ClearDir(testHome);

            /*
             * Use MoveCursorToNextUnique() as its
             * move function.
             */
            cursorFunc = new CursorMoveFuncDelegate(
                MoveCursorToNextUnique);

            /*
             * Move to five unique records.
             */
            MoveWithRMW(testHome, testName);
        }
Esempio n. 7
0
        public void TestRefreshWithRMW()
        {
            testName = "TestRefreshWithRMW";
            testHome = testFixtureHome + "/" + testName;

            Configuration.ClearDir(testHome);

            cursorFunc = new CursorMoveFuncDelegate(
                MoveCursorToCurrentRec);

            // Read the previous unique record in write lock.
            MoveWithRMW(testHome, testName);
        }
Esempio n. 8
0
        public void TestMoveWithRMW()
        {
            testName = "TestMoveWithRMW";
            testHome = testFixtureHome + "/" + testName;
            Configuration.ClearDir(testHome);

            // Use MoveCursor() as its move function.
            cursorFunc = new CursorMoveFuncDelegate(MoveCursor);

            // Move to a specified key and a key/data pair.
            MoveWithRMW(testHome, testName);
        }
Esempio n. 9
0
        public void TestMovePrevWithRMW()
        {
            testName = "TestMovePrevWithRMW";
            testHome = testFixtureHome + "/" + testName;
            Configuration.ClearDir(testHome);

            /*
             * Use MoveCursorToNextDuplicate() as its
             * move function.
             */
            cursorFunc = new CursorMoveFuncDelegate(
                MoveCursorToPrev);

            // Read previous record in write lock.
            MoveWithRMW(testHome, testName);
        }
Esempio n. 10
0
        public void TestMoveNextUniqueWithRMW()
        {
            testName = "TestMoveNextUniqueWithRMW";
            testHome = testFixtureHome + "/" + testName;
            Configuration.ClearDir(testHome);

            /*
             * Use MoveCursorToNextUnique() as its
             * move function.
             */
            cursorFunc = new CursorMoveFuncDelegate(
                MoveCursorToNextUnique);

            /*
             * Move to five unique records.
             */
            MoveWithRMW(testHome, testName);
        }
Esempio n. 11
0
        public void TestRefreshWithRMW()
        {
            testName = "TestRefreshWithRMW";
            SetUpTest(true);

            cursorFunc = new CursorMoveFuncDelegate(
                MoveCursorToCurrentRec);

            // Read the previous unique record in write lock.
            MoveWithRMW(testHome, testName);
        }
Esempio n. 12
0
        public void TestMoveWithRMW()
        {
            testName = "TestMoveWithRMW";
            SetUpTest(true);

            // Use MoveCursor() as its move function.
            cursorFunc = new CursorMoveFuncDelegate(MoveCursor);

            // Move to a specified key and a key/data pair.
            MoveWithRMW(testHome, testName);
        }
Esempio n. 13
0
        public void TestMoveNextWithRMW()
        {
            testName = "TestMoveLastWithRMW";
            SetUpTest(true);

            // Use MoveCursorToNext() as its move function.
            cursorFunc = new CursorMoveFuncDelegate(
                MoveCursorToNext);

            /*
             * Read the first record to the fifth record with
             * write lock.
             */
            MoveWithRMW(testHome, testName);
        }
Esempio n. 14
0
        public void TestMoveNextUniqueWithRMW()
        {
            testName = "TestMoveNextUniqueWithRMW";
            SetUpTest(true);

            /*
             * Use MoveCursorToNextUnique() as its
             * move function.
             */
            cursorFunc = new CursorMoveFuncDelegate(
                MoveCursorToNextUnique);

            /*
             * Move to five unique records.
             */
            MoveWithRMW(testHome, testName);
        }
Esempio n. 15
0
        public void TestMoveLastWithRMW()
        {
            testName = "TestMoveLastWithRMW";
            SetUpTest(true);

            // Use MoveCursorToLast() as its move function.
            cursorFunc = new CursorMoveFuncDelegate(MoveCursorToLast);

            // Read the last recod with write lock.
            MoveWithRMW(testHome, testName);
        }
Esempio n. 16
0
        public void TestMoveLastWithRMW()
        {
            testName = "TestMoveLastWithRMW";
            testHome = testFixtureHome + "/" + testName;
            Configuration.ClearDir(testHome);

            // Use MoveCursorToLast() as its move function.
            cursorFunc = new CursorMoveFuncDelegate(MoveCursorToLast);

            // Read the last recod with write lock.
            MoveWithRMW(testHome, testName);
        }
Esempio n. 17
0
        public void TestMoveNextDuplicateWithRMW()
        {
            testName = "TestMoveNextDuplicateWithRMW";
            testHome = testFixtureHome + "/" + testName;
            Configuration.ClearDir(testHome);

            /*
             * Use MoveCursorToNextDuplicate() as its
             * move function.
             */
            cursorFunc = new CursorMoveFuncDelegate(
                MoveCursorToNextDuplicate);

            /*
             * Read the first record to the fifth record with
             * write lock.
             */
            MoveWithRMW(testHome, testName);
        }
Esempio n. 18
0
        public void TestMovePrevWithRMW()
        {
            testName = "TestMovePrevWithRMW";
            SetUpTest(true);

            /*
             * Use MoveCursorToNextDuplicate() as its
             * move function.
             */
            cursorFunc = new CursorMoveFuncDelegate(
                MoveCursorToPrev);

            // Read previous record in write lock.
            MoveWithRMW(testHome, testName);
        }