Lines Matching refs:it

52     recursive_directory_iterator it(testDir, ec);  in TEST_CASE()  local
57 TEST_REQUIRE(it != endIt); in TEST_CASE()
58 const path entry = *it; in TEST_CASE()
60 recursive_directory_iterator& it_ref = ++it; in TEST_CASE()
61 TEST_CHECK(&it_ref == &it); in TEST_CASE()
64 TEST_CHECK(it == endIt); in TEST_CASE()
76 recursive_directory_iterator it(testDir, ec); in TEST_CASE() local
81 TEST_REQUIRE(it != endIt); in TEST_CASE()
82 const path entry = *it; in TEST_CASE()
84 const path entry2 = *it++; in TEST_CASE()
87 TEST_CHECK(it == endIt); in TEST_CASE()
100 recursive_directory_iterator it(testDir, ec); in TEST_CASE() local
105 TEST_REQUIRE(it != endIt); in TEST_CASE()
106 const path entry = *it; in TEST_CASE()
108 recursive_directory_iterator& it_ref = it.increment(ec); in TEST_CASE()
110 TEST_CHECK(&it_ref == &it); in TEST_CASE()
113 TEST_CHECK(it == endIt); in TEST_CASE()
126 recursive_directory_iterator it(testDir, in TEST_CASE() local
132 TEST_REQUIRE(it != endIt); in TEST_CASE()
133 const path entry = *it; in TEST_CASE()
136 recursive_directory_iterator& it_ref = it.increment(ec); in TEST_CASE()
138 TEST_CHECK(&it_ref == &it); in TEST_CASE()
140 TEST_CHECK(it == endIt); in TEST_CASE()
170 recursive_directory_iterator it(startDir, ec); in TEST_CASE() local
173 while (it != endIt && it->path() != permDeniedDir) in TEST_CASE()
174 ++it; in TEST_CASE()
175 TEST_REQUIRE(it != endIt); in TEST_CASE()
176 TEST_REQUIRE(*it == permDeniedDir); in TEST_CASE()
178 it.increment(ec); in TEST_CASE()
180 TEST_CHECK(it == endIt); in TEST_CASE()
185 recursive_directory_iterator it(startDir, ec); in TEST_CASE() local
187 while (it != endIt && it->path() != permDeniedDir) in TEST_CASE()
188 ++it; in TEST_CASE()
189 TEST_REQUIRE(it != endIt); in TEST_CASE()
190 TEST_REQUIRE(*it == permDeniedDir); in TEST_CASE()
192 TEST_REQUIRE_THROW(filesystem_error, ++it); in TEST_CASE()
198 recursive_directory_iterator it(startDir, SkipEPerm, ec); in TEST_CASE() local
200 TEST_REQUIRE(it != endIt); in TEST_CASE()
203 if (*it == otherFile) { in TEST_CASE()
204 ++it; in TEST_CASE()
206 TEST_REQUIRE (it != endIt); in TEST_CASE()
208 TEST_REQUIRE(*it == permDeniedDir); in TEST_CASE()
211 it.increment(ec); in TEST_CASE()
215 TEST_CHECK(it == endIt); in TEST_CASE()
217 TEST_CHECK(it != endIt); in TEST_CASE()
218 TEST_CHECK(*it == otherFile); in TEST_CASE()
225 recursive_directory_iterator it(permDeniedDir, ec); in TEST_CASE() local
227 TEST_REQUIRE(it == endIt); in TEST_CASE()
238 recursive_directory_iterator it(permDeniedDir, SkipEPerm, ec); in TEST_CASE() local
240 TEST_REQUIRE(it == endIt); in TEST_CASE()
275 recursive_directory_iterator it(startDir, Opts, ec); in TEST_CASE() local
276 while (!ec && it != endIt && *it != nestedDir) { in TEST_CASE()
277 if (*it == nestedFile) in TEST_CASE()
279 it.increment(ec); in TEST_CASE()
281 return it; in TEST_CASE()
286 recursive_directory_iterator it = SetupState(false, SeenNestedFile); in TEST_CASE() local
287 TEST_REQUIRE(it != endIt); in TEST_CASE()
288 TEST_REQUIRE(*it == nestedDir); in TEST_CASE()
290 it.increment(ec); in TEST_CASE()
293 TEST_CHECK(it == endIt); in TEST_CASE()
297 recursive_directory_iterator it = SetupState(true, SeenNestedFile); in TEST_CASE() local
298 TEST_REQUIRE(it != endIt); in TEST_CASE()
299 TEST_REQUIRE(*it == nestedDir); in TEST_CASE()
301 it.increment(ec); in TEST_CASE()
304 TEST_CHECK(it == endIt); in TEST_CASE()
306 TEST_REQUIRE(it != endIt); in TEST_CASE()
307 TEST_CHECK(*it == nestedFile); in TEST_CASE()
312 recursive_directory_iterator it = SetupState(false, SeenNestedFile); in TEST_CASE() local
313 TEST_REQUIRE(it != endIt); in TEST_CASE()
314 TEST_REQUIRE(*it == nestedDir); in TEST_CASE()
320 TEST_CHECK_THROW_RESULT(filesystem_error, Checker, ++it); in TEST_CASE()
362 recursive_directory_iterator it(startDir, Opts, ec); in TEST_CASE() local
363 while (!ec && it != endIt && *it != symDir) { in TEST_CASE()
364 if (*it == nestedFile) in TEST_CASE()
366 it.increment(ec); in TEST_CASE()
368 return it; in TEST_CASE()
383 recursive_directory_iterator it = SetupState(TC.SkipPermDenied, in TEST_CASE() local
387 TEST_REQUIRE(it != endIt); in TEST_CASE()
388 TEST_REQUIRE(*it == symDir); in TEST_CASE()
390 it.increment(ec); in TEST_CASE()
394 TEST_CHECK(it == endIt); in TEST_CASE()
396 TEST_REQUIRE(it != endIt); in TEST_CASE()
397 TEST_CHECK(*it == nestedFile); in TEST_CASE()
402 TEST_CHECK(it == endIt); in TEST_CASE()
445 recursive_directory_iterator it(startDir, Opts, ec); in TEST_CASE() local
446 while (!ec && it != EndIt && *it != nestedDir) { in TEST_CASE()
447 if (*it == nestedFile) in TEST_CASE()
449 it.increment(ec); in TEST_CASE()
451 return it; in TEST_CASE()
466 recursive_directory_iterator it = SetupState(TC.SkipPermDenied, in TEST_CASE() local
470 TEST_REQUIRE(it != EndIt); in TEST_CASE()
471 TEST_REQUIRE(*it == nestedDir); in TEST_CASE()
473 it.increment(ec); in TEST_CASE()
474 TEST_REQUIRE(it != EndIt); in TEST_CASE()
476 TEST_CHECK(*it == symFile); in TEST_CASE()
478 it.increment(ec); in TEST_CASE()
482 TEST_REQUIRE(it != EndIt); in TEST_CASE()
483 TEST_CHECK(*it == nestedFile); in TEST_CASE()
485 it.increment(ec); in TEST_CASE()
488 TEST_CHECK(it == EndIt); in TEST_CASE()
492 TEST_CHECK(it == EndIt); in TEST_CASE()