MCPcopy Create free account
hub / github.com/BowenFu/matchit.cpp / expectRange

Function expectRange

test/matchit/ds.cpp:76–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75template <typename Range1, typename Range2>
76auto expectRange(Range1 const &result, Range2 const &expected)
77{
78 EXPECT_EQ(result.size(), expected.size());
79 auto b1 = result.begin();
80 auto b2 = expected.begin();
81 for (; b1 != result.end() && b2 != expected.end(); ++b1, ++b2)
82 {
83 using impl::operator==;
84 EXPECT_TRUE(*b1 == *b2);
85 }
86}
87
88TEST(Ds, vecOooBinder1)
89{

Callers 1

TESTFunction · 0.85

Calls 3

sizeMethod · 0.80
beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected