Searched refs:GetBlockNumber (Results 1 – 3 of 3) sorted by relevance
206 TEST(RangeSetTest, GetBlockNumber) { in TEST() argument208 ASSERT_EQ(static_cast<size_t>(1), rs.GetBlockNumber(0)); in TEST()209 ASSERT_EQ(static_cast<size_t>(6), rs.GetBlockNumber(5)); in TEST()210 ASSERT_EQ(static_cast<size_t>(9), rs.GetBlockNumber(8)); in TEST()213 ASSERT_EXIT(rs.GetBlockNumber(9), ::testing::KilledBySignal(SIGABRT), ""); in TEST()
46 size_t GetBlockNumber(size_t idx) const;
159 size_t RangeSet::GetBlockNumber(size_t idx) const { in GetBlockNumber() function in RangeSet