MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/core/lib/gtl/iterator_range_test.cc:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace {
26
27TEST(IteratorRange, WholeVector) {
28 std::vector<int> v = {2, 3, 5, 7, 11, 13};
29 iterator_range<std::vector<int>::iterator> range(v.begin(), v.end());
30 int index = 0;
31 for (int prime : range) {
32 ASSERT_LT(index, v.size());
33 EXPECT_EQ(v[index], prime);
34 ++index;
35 }
36 EXPECT_EQ(v.size(), index);
37}
38
39TEST(IteratorRange, VectorMakeRange) {
40 std::vector<int> v = {2, 3, 5, 7, 11, 13};

Callers

nothing calls this directly

Calls 4

make_rangeFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected