Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #11
0
        public void TestRefreshWithRMW()
        {
            testName = "TestRefreshWithRMW";
            SetUpTest(true);

            cursorFunc = new CursorMoveFuncDelegate(
                MoveCursorToCurrentRec);

            // Read the previous unique record in write lock.
            MoveWithRMW(testHome, testName);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }