Home | History | Annotate | Download | only in metrics

Lines Matching refs:ranges

160   EXPECT_EQ(0, histogram->ranges(0));
163 EXPECT_EQ(power_of_2, histogram->ranges(i));
166 EXPECT_EQ(INT_MAX, histogram->ranges(8));
173 EXPECT_EQ(i, short_histogram->ranges(i));
174 EXPECT_EQ(INT_MAX, short_histogram->ranges(8));
178 // We also get a nice linear set of bucket ranges when we ask for it
180 EXPECT_EQ(i, linear_histogram->ranges(i));
181 EXPECT_EQ(INT_MAX, linear_histogram->ranges(8));
185 // ...but when the list has more space, then the ranges naturally spread out.
187 EXPECT_EQ(2 * i, linear_broad_histogram->ranges(i));
188 EXPECT_EQ(INT_MAX, linear_broad_histogram->ranges(8));
193 EXPECT_EQ(0, transitioning_histogram->ranges(0));
194 EXPECT_EQ(1, transitioning_histogram->ranges(1));
195 EXPECT_EQ(2, transitioning_histogram->ranges(2));
196 EXPECT_EQ(3, transitioning_histogram->ranges(3));
197 EXPECT_EQ(4, transitioning_histogram->ranges(4));
198 EXPECT_EQ(5, transitioning_histogram->ranges(5));
199 EXPECT_EQ(6, transitioning_histogram->ranges(6));
200 EXPECT_EQ(7, transitioning_histogram->ranges(7));
201 EXPECT_EQ(9, transitioning_histogram->ranges(8));
202 EXPECT_EQ(11, transitioning_histogram->ranges(9));
203 EXPECT_EQ(14, transitioning_histogram->ranges(10));
204 EXPECT_EQ(17, transitioning_histogram->ranges(11));
205 EXPECT_EQ(21, transitioning_histogram->ranges(12));
206 EXPECT_EQ(26, transitioning_histogram->ranges(13));
207 EXPECT_EQ(32, transitioning_histogram->ranges(14));
208 EXPECT_EQ(INT_MAX, transitioning_histogram->ranges(15));
219 EXPECT_EQ(custom_ranges[0], test_custom_histogram->ranges(0));
220 EXPECT_EQ(custom_ranges[1], test_custom_histogram->ranges(1));
221 EXPECT_EQ(custom_ranges[2], test_custom_histogram->ranges(2));
222 EXPECT_EQ(custom_ranges[3], test_custom_histogram->ranges(3));
223 EXPECT_EQ(custom_ranges[4], test_custom_histogram->ranges(4));
242 EXPECT_EQ(0, test_custom_histogram->ranges(0)); // Auto added
243 EXPECT_EQ(custom_ranges[0], test_custom_histogram->ranges(1));
244 EXPECT_EQ(custom_ranges[1], test_custom_histogram->ranges(2));
245 EXPECT_EQ(custom_ranges[2], test_custom_histogram->ranges(3));
262 EXPECT_EQ(0, unsorted_histogram->ranges(0));
263 EXPECT_EQ(kSmall, unsorted_histogram->ranges(1));
264 EXPECT_EQ(kMid, unsorted_histogram->ranges(2));
265 EXPECT_EQ(kBig, unsorted_histogram->ranges(3));
299 EXPECT_EQ(0, histogram->ranges(0));
302 EXPECT_EQ(power_of_2, histogram->ranges(i));
305 EXPECT_EQ(INT_MAX, histogram->ranges(8));
320 EXPECT_EQ(INT_MAX, histogram->ranges(8));