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

Function TEST

tensorflow/compiler/xla/iterator_util_test.cc:27–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace {
26
27TEST(UnwrappingIteratorTest, Simple) {
28 std::vector<std::unique_ptr<int>> v;
29 for (int i = 0; i < 3; ++i) {
30 v.push_back(absl::make_unique<int>(i));
31 }
32 int i = 0;
33 for (auto iter = MakeUnwrappingIterator(v.begin());
34 iter != MakeUnwrappingIterator(v.end()); ++iter) {
35 EXPECT_EQ(*iter, v[i].get());
36 ++i;
37 }
38}
39
40TEST(UnwrappingIteratorTest, PostincrementOperator) {
41 std::vector<std::shared_ptr<int>> v;

Callers

nothing calls this directly

Calls 5

MakeUnwrappingIteratorFunction · 0.85
push_backMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected