Esempio n. 1
0
        public void ListTest5(Table tbl, uint num)
        {
            StringRangeParams ps = new StringRangeParams();

            ps.Backward();
            PerformListTest(tbl, ps, num);
        }
Esempio n. 2
0
        public void ListTest17(Table tbl, uint num)
        {
            StringRangeParams ps = new StringRangeParams();

            ps.Prefix("000000002");
            ps.Backward();

            uint expected = 2000;

            PerformListTest(tbl, ps, expected);
        }
Esempio n. 3
0
        public void ListTest9(Table tbl, uint num)
        {
            StringRangeParams ps = new StringRangeParams();

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

            uint expected = num - 15000 - 1;

            PerformListTest(tbl, ps, expected);
        }
Esempio n. 4
0
        public void ListTest29(Table tbl, uint num)
        {
            for (uint i = 0; i < (num / 1000); i++)
            {
                StringRangeParams ps = new StringRangeParams();
                ps.Prefix("00000000" + i.ToString("D2"));
                ps.Backward();

                uint expected = 1000;
                PerformListTest(tbl, ps, expected);
            }
        }
Esempio n. 5
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);
        }
Esempio n. 6
0
        public void ListTest19(Table tbl, uint num)
        {
            StringRangeParams ps = new StringRangeParams();

            ps.StartKey(Utils.Id(12000));
            ps.Prefix("0000000013");
            ps.Backward();

            uint expected = 0;

            PerformListTest(tbl, ps, expected);
        }
Esempio n. 7
0
        public void ListTest7(Table tbl, uint num)
        {
            uint count = 1234;

            StringRangeParams ps = new StringRangeParams();

            ps.Backward();
            ps.Count(count);

            uint expected = count;

            PerformListTest(tbl, ps, expected);
        }
Esempio n. 8
0
        public void ListTest3(Table tbl, uint num)
        {
            uint count = 100;

            StringRangeParams ps = new StringRangeParams();

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

            uint expected = count;

            PerformListTest(tbl, ps, expected);
        }
Esempio n. 9
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);
            }
        }