Lines Matching refs:dent
532 static void assert_is_file_type(uv_dirent_t dent) { in assert_is_file_type() argument
544 ASSERT(dent.type == UV_DIRENT_FILE); in assert_is_file_type()
546 ASSERT(dent.type == UV_DIRENT_FILE || dent.type == UV_DIRENT_UNKNOWN); in assert_is_file_type()
549 ASSERT(dent.type == UV_DIRENT_UNKNOWN); in assert_is_file_type()
555 uv_dirent_t dent; in scandir_cb() local
561 while (UV_EOF != uv_fs_scandir_next(req, &dent)) { in scandir_cb()
562 ASSERT(strcmp(dent.name, "file1") == 0 || strcmp(dent.name, "file2") == 0); in scandir_cb()
563 assert_is_file_type(dent); in scandir_cb()
574 uv_dirent_t dent; in empty_scandir_cb() local
580 ASSERT(UV_EOF == uv_fs_scandir_next(req, &dent)); in empty_scandir_cb()
586 uv_dirent_t dent; in non_existent_scandir_cb() local
592 ASSERT(UV_ENOENT == uv_fs_scandir_next(req, &dent)); in non_existent_scandir_cb()
1048 uv_dirent_t dent; in TEST_IMPL() local
1091 while (UV_EOF != uv_fs_scandir_next(&scandir_req, &dent)) { in TEST_IMPL()
1092 ASSERT(strcmp(dent.name, "file1") == 0 || strcmp(dent.name, "file2") == 0); in TEST_IMPL()
1093 assert_is_file_type(dent); in TEST_IMPL()
2107 uv_dirent_t dent; in test_symlink_dir_impl() local
2219 while (UV_EOF != uv_fs_scandir_next(&scandir_req, &dent)) { in test_symlink_dir_impl()
2220 ASSERT(strcmp(dent.name, "file1") == 0 || strcmp(dent.name, "file2") == 0); in test_symlink_dir_impl()
2221 assert_is_file_type(dent); in test_symlink_dir_impl()
2239 while (UV_EOF != uv_fs_scandir_next(&scandir_req, &dent)) { in test_symlink_dir_impl()
2240 ASSERT(strcmp(dent.name, "file1") == 0 || strcmp(dent.name, "file2") == 0); in test_symlink_dir_impl()
2241 assert_is_file_type(dent); in test_symlink_dir_impl()
2271 uv_dirent_t dent; in TEST_IMPL() local
2346 while (UV_EOF != uv_fs_scandir_next(&scandir_req, &dent)) { in TEST_IMPL()
2347 ASSERT(strcmp(dent.name, "test_file") == 0); in TEST_IMPL()
2352 ASSERT(dent.type == UV_DIRENT_LINK); in TEST_IMPL()
2690 uv_dirent_t dent; in TEST_IMPL() local
2706 ASSERT(UV_EOF == uv_fs_scandir_next(&req, &dent)); in TEST_IMPL()
2727 uv_dirent_t dent; in TEST_IMPL() local
2743 ASSERT(UV_ENOENT == uv_fs_scandir_next(&req, &dent)); in TEST_IMPL()