예제 #1
0
        public void ListTest8(Table tbl, uint num)
        {
            StringRangeParams ps = new StringRangeParams();

            ps.EndKey(Utils.Id(15000));

            uint expected = 15000;

            PerformListTest(tbl, ps, expected);
        }
예제 #2
0
        public void ListTest26(Table tbl, uint num)
        {
            for (uint i = 0; i < num; i += 1000)
            {
                StringRangeParams ps = new StringRangeParams();
                ps.StartKey(Utils.Id(i));
                ps.EndKey(Utils.Id(i + 1000));

                uint expected = 1000;
                PerformListTest(tbl, ps, expected);
            }
        }
예제 #3
0
        public void ListTest25(Table tbl, uint num)
        {
            StringRangeParams ps = new StringRangeParams();

            ps.StartKey(Utils.Id(22000));
            ps.EndKey(Utils.Id(18000));
            ps.Backward();

            uint expected = 3999;

            PerformListTest(tbl, ps, expected);
        }
예제 #4
0
        public void ListTest12(Table tbl, uint num)
        {
            StringRangeParams ps = new StringRangeParams();

            ps.StartKey(Utils.Id(10000));
            ps.EndKey(Utils.Id(15000));
            ps.Prefix("0000000012");

            uint expected = 1000;

            PerformListTest(tbl, ps, expected);
        }
예제 #5
0
        public void ListTest27(Table tbl, uint num)
        {
            for (uint i = num; i > 0; i -= 1000)
            {
                StringRangeParams ps = new StringRangeParams();
                ps.StartKey(Utils.Id(i));
                ps.EndKey(Utils.Id(i - 1000));
                ps.Backward();

                uint expected;
                if (i == 22000)
                {
                    expected = 999;
                }
                else
                {
                    expected = 1000;
                }
                PerformListTest(tbl, ps, expected);
            }
        }