Home | History | Annotate | Download | only in rec.dir.itr.members

Lines Matching refs:it

28 // the directory iterators. Turn off this warning so we can test it.
39 // in a non-default state. The returned 'it' is in a
41 // it.options() == directory_options::skip_permission_denied
42 // it.depth() == 1
43 // it.recursion_pending() == true
47 recursive_directory_iterator it(testDir,
49 TEST_ASSERT(it != endIt);
50 while (it.depth() != 1) {
51 ++it;
52 TEST_ASSERT(it != endIt);
54 TEST_ASSERT(it.depth() == 1);
55 it.disable_recursion_pending();
56 return it;
61 // in a non-default state. The returned 'it' is in a
63 // it.options() == directory_options::follow_directory_symlink
64 // it.depth() == 2
65 // it.recursion_pending() == false
69 recursive_directory_iterator it(testDir,
71 TEST_ASSERT(it != endIt);
72 while (it.depth() != 2) {
73 ++it;
74 TEST_ASSERT(it != endIt);
76 TEST_ASSERT(it.depth() == 2);
77 return it;
121 recursive_directory_iterator it = createInterestingIterator();
122 const recursive_directory_iterator it_copy(it);
123 const path entry = *it;
127 TEST_REQUIRE(it2 != it);
128 TEST_CHECK(it2.options() != it.options());
129 TEST_CHECK(it2.depth() != it.depth());
130 TEST_CHECK(it2.recursion_pending() != it.recursion_pending());
133 it2 = std::move(it);
139 TEST_CHECK(it == endIt || it == it2);
144 recursive_directory_iterator it;
146 recursive_directory_iterator& ref = (it2 = std::move(it));
153 recursive_directory_iterator it = createInterestingIterator();
155 TEST_CHECK(it != it2);
156 TEST_CHECK(it2.options() == it.options());
157 TEST_CHECK(it2.depth() == it.depth());
158 TEST_CHECK(it2.recursion_pending() == it.recursion_pending());
159 TEST_CHECK(*it2 == *it);
161 it = std::move(it);
162 TEST_CHECK(it2.options() == it.options());
163 TEST_CHECK(it2.depth() == it.depth());
164 TEST_CHECK(it2.recursion_pending() == it.recursion_pending());
165 TEST_CHECK(*it2 == *it);