MCPcopy Create free account
hub / github.com/boostorg/histogram / test_axis_iterator

Function test_axis_iterator

test/axis_test.cpp:25–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24template <typename Axis>
25void test_axis_iterator(const Axis& a, int begin, int end) {
26 for (auto bin : a) {
27 BOOST_TEST_EQ(bin.idx(), begin);
28 BOOST_TEST_EQ(bin, a[begin]);
29 ++begin;
30 }
31 BOOST_TEST_EQ(begin, end);
32 auto rit = a.rbegin();
33 for (; rit != a.rend(); ++rit) {
34 BOOST_TEST_EQ(rit->idx(), --begin);
35 BOOST_TEST_EQ(*rit, a[begin]);
36 }
37}
38
39int main() {
40 // bad_ctors

Callers 1

mainFunction · 0.85

Calls 3

idxMethod · 0.45
rbeginMethod · 0.45
rendMethod · 0.45

Tested by

no test coverage detected