Lines Matching refs:ZigZagEncodedSize
1039 TEST(Varint, ZigZagEncodedSize) { in TEST() argument
1040 EXPECT_EQ(ZigZagEncodedSize(int64_t(0)), 1u); in TEST()
1041 EXPECT_EQ(ZigZagEncodedSize(int64_t(-1)), 1u); in TEST()
1042 EXPECT_EQ(ZigZagEncodedSize(int64_t(1)), 1u); in TEST()
1043 EXPECT_EQ(ZigZagEncodedSize(int64_t(-64)), 1u); in TEST()
1044 EXPECT_EQ(ZigZagEncodedSize(int64_t(-65)), 2u); in TEST()
1045 EXPECT_EQ(ZigZagEncodedSize(int64_t(63)), 1u); in TEST()
1046 EXPECT_EQ(ZigZagEncodedSize(int64_t(64)), 2u); in TEST()
1047 EXPECT_EQ(ZigZagEncodedSize(std::numeric_limits<int8_t>::min()), 2u); in TEST()
1048 EXPECT_EQ(ZigZagEncodedSize(std::numeric_limits<int8_t>::max()), 2u); in TEST()
1049 EXPECT_EQ(ZigZagEncodedSize(std::numeric_limits<int16_t>::min()), 3u); in TEST()
1050 EXPECT_EQ(ZigZagEncodedSize(std::numeric_limits<int16_t>::max()), 3u); in TEST()
1051 EXPECT_EQ(ZigZagEncodedSize(std::numeric_limits<int32_t>::min()), 5u); in TEST()
1052 EXPECT_EQ(ZigZagEncodedSize(std::numeric_limits<int32_t>::max()), 5u); in TEST()
1053 EXPECT_EQ(ZigZagEncodedSize(std::numeric_limits<int64_t>::min()), 10u); in TEST()
1054 EXPECT_EQ(ZigZagEncodedSize(std::numeric_limits<int64_t>::max()), 10u); in TEST()