Example #1
0
        public void ListTest24(Table tbl, uint num)
        {
            StringRangeParams ps = new StringRangeParams();

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

            uint expected = 4000;

            PerformListTest(tbl, ps, expected);
        }
Example #2
0
        public void ListTest18(Table tbl, uint num)
        {
            StringRangeParams ps = new StringRangeParams();

            ps.StartKey(Utils.Id(13000));
            ps.Prefix("0000000012");

            uint expected = 0;

            PerformListTest(tbl, ps, expected);
        }
Example #3
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);
            }
        }
Example #4
0
        public void ListTest23(Table tbl, uint num)
        {
            StringRangeParams ps = new StringRangeParams();

            ps.StartKey(Utils.Id(13000));
            ps.EndKey(Utils.Id(10000));
            ps.Backward();

            uint expected = 3000;

            PerformListTest(tbl, ps, expected);
        }
Example #5
0
        public void ListTest1(Table tbl, uint num)
        {
            uint count = 111;

            StringRangeParams ps = new StringRangeParams();

            ps.StartKey(Utils.Id(100));
            ps.Count(count);

            uint expected = count;

            PerformListTest(tbl, ps, expected);
        }
Example #6
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);
            }
        }