Lines Matching refs:dent
583 static void assert_is_file_type(uv_dirent_t dent) { in assert_is_file_type() argument
595 ASSERT_EQ(dent.type, UV_DIRENT_FILE); in assert_is_file_type()
597 ASSERT(dent.type == UV_DIRENT_FILE || dent.type == UV_DIRENT_UNKNOWN); in assert_is_file_type()
600 ASSERT_EQ(dent.type, UV_DIRENT_UNKNOWN); in assert_is_file_type()
606 uv_dirent_t dent; in scandir_cb() local
612 while (UV_EOF != uv_fs_scandir_next(req, &dent)) { in scandir_cb()
613 ASSERT(strcmp(dent.name, "file1") == 0 || strcmp(dent.name, "file2") == 0); in scandir_cb()
614 assert_is_file_type(dent); in scandir_cb()
625 uv_dirent_t dent; in empty_scandir_cb() local
631 ASSERT_EQ(UV_EOF, uv_fs_scandir_next(req, &dent)); in empty_scandir_cb()
637 uv_dirent_t dent; in non_existent_scandir_cb() local
643 ASSERT_EQ(UV_ENOENT, uv_fs_scandir_next(req, &dent)); in non_existent_scandir_cb()
1155 uv_dirent_t dent; in TEST_IMPL() local
1200 while (UV_EOF != uv_fs_scandir_next(&scandir_req, &dent)) { in TEST_IMPL()
1201 ASSERT(strcmp(dent.name, "file1") == 0 || strcmp(dent.name, "file2") == 0); in TEST_IMPL()
1202 assert_is_file_type(dent); in TEST_IMPL()
2362 uv_dirent_t dent; in test_symlink_dir_impl() local
2467 while (UV_EOF != uv_fs_scandir_next(&scandir_req, &dent)) { in test_symlink_dir_impl()
2468 ASSERT(strcmp(dent.name, "file1") == 0 || strcmp(dent.name, "file2") == 0); in test_symlink_dir_impl()
2469 assert_is_file_type(dent); in test_symlink_dir_impl()
2487 while (UV_EOF != uv_fs_scandir_next(&scandir_req, &dent)) { in test_symlink_dir_impl()
2488 ASSERT(strcmp(dent.name, "file1") == 0 || strcmp(dent.name, "file2") == 0); in test_symlink_dir_impl()
2489 assert_is_file_type(dent); in test_symlink_dir_impl()
2519 uv_dirent_t dent; in TEST_IMPL() local
2594 while (UV_EOF != uv_fs_scandir_next(&scandir_req, &dent)) { in TEST_IMPL()
2595 ASSERT_OK(strcmp(dent.name, "test_file")); in TEST_IMPL()
2600 ASSERT_EQ(dent.type, UV_DIRENT_LINK); in TEST_IMPL()
2946 uv_dirent_t dent; in TEST_IMPL() local
2962 ASSERT_EQ(UV_EOF, uv_fs_scandir_next(&req, &dent)); in TEST_IMPL()
2983 uv_dirent_t dent; in TEST_IMPL() local
2999 ASSERT_EQ(UV_ENOENT, uv_fs_scandir_next(&req, &dent)); in TEST_IMPL()
4642 uv_dirent_t dent; in TEST_IMPL() local
4671 while (UV_EOF != uv_fs_scandir_next(&scandir_req, &dent)) { in TEST_IMPL()
4672 snprintf(test_file_buf, sizeof(test_file_buf), "test_dir\\%s", dent.name); in TEST_IMPL()