Lines Matching refs:test_buf
131 static char test_buf[] = "test-buffer\n"; variable
332 ASSERT_EQ(s->st_size, sizeof(test_buf)); in fstat_cb()
408 ASSERT_OK(strcmp(buf, test_buf)); in read_cb()
494 iov = uv_buf_init(test_buf, sizeof(test_buf)); in create_cb()
996 iov = uv_buf_init(test_buf, sizeof(test_buf)); in fs_file_sync()
1017 ASSERT_OK(strcmp(buf, test_buf)); in fs_file_sync()
1409 iov = uv_buf_init(test_buf, sizeof(test_buf)); in TEST_IMPL()
1411 ASSERT_EQ(r, sizeof(test_buf)); in TEST_IMPL()
1412 ASSERT_EQ(req.result, sizeof(test_buf)); in TEST_IMPL()
1430 ASSERT_OK(strcmp(buf, test_buf)); in TEST_IMPL()
1494 iov = uv_buf_init(test_buf, sizeof(test_buf)); in TEST_IMPL()
1496 ASSERT_EQ(r, sizeof(test_buf)); in TEST_IMPL()
1497 ASSERT_EQ(req.result, sizeof(test_buf)); in TEST_IMPL()
1505 ASSERT_EQ(s->st_size, sizeof(test_buf)); in TEST_IMPL()
1742 iov = uv_buf_init(test_buf, sizeof(test_buf)); in TEST_IMPL()
1744 ASSERT_EQ(r, sizeof(test_buf)); in TEST_IMPL()
1745 ASSERT_EQ(req.result, sizeof(test_buf)); in TEST_IMPL()
1842 iov = uv_buf_init(test_buf, sizeof(test_buf)); in TEST_IMPL()
1844 ASSERT_EQ(r, sizeof(test_buf)); in TEST_IMPL()
1845 ASSERT_EQ(req.result, sizeof(test_buf)); in TEST_IMPL()
1899 iov = uv_buf_init(test_buf, sizeof(test_buf)); in TEST_IMPL()
1901 ASSERT_EQ(r, sizeof(test_buf)); in TEST_IMPL()
1902 ASSERT_EQ(req.result, sizeof(test_buf)); in TEST_IMPL()
2049 iov = uv_buf_init(test_buf, sizeof(test_buf)); in TEST_IMPL()
2051 ASSERT_EQ(r, sizeof(test_buf)); in TEST_IMPL()
2052 ASSERT_EQ(req.result, sizeof(test_buf)); in TEST_IMPL()
2074 ASSERT_OK(strcmp(buf, test_buf)); in TEST_IMPL()
2095 ASSERT_OK(strcmp(buf, test_buf)); in TEST_IMPL()
2222 iov = uv_buf_init(test_buf, sizeof(test_buf)); in TEST_IMPL()
2224 ASSERT_EQ(r, sizeof(test_buf)); in TEST_IMPL()
2225 ASSERT_EQ(req.result, sizeof(test_buf)); in TEST_IMPL()
2264 ASSERT_OK(strcmp(buf, test_buf)); in TEST_IMPL()
2317 ASSERT_OK(strcmp(buf, test_buf)); in TEST_IMPL()
3099 iov = uv_buf_init(test_buf, sizeof(test_buf)); in fs_file_open_append()
3116 iov = uv_buf_init(test_buf, sizeof(test_buf)); in fs_file_open_append()
3175 iov = uv_buf_init(test_buf, sizeof(test_buf)); in TEST_IMPL()
3212 ASSERT_OK(strcmp(buf, test_buf)); in TEST_IMPL()
3305 iov = uv_buf_init(test_buf, sizeof(test_buf)); in fs_read_file_eof()
3327 ASSERT_OK(strcmp(buf, test_buf)); in fs_read_file_eof()
3370 iovs[0] = uv_buf_init(test_buf, sizeof(test_buf)); in fs_write_multiple_bufs()
3391 iovs[0] = uv_buf_init(buf, sizeof(test_buf)); in fs_write_multiple_bufs()
3396 ASSERT_EQ(read_req.result, sizeof(test_buf) + sizeof(test_buf2)); in fs_write_multiple_bufs()
3397 ASSERT_OK(strcmp(buf, test_buf)); in fs_write_multiple_bufs()
3408 iovs[0] = uv_buf_init(buf, sizeof(test_buf)); in fs_write_multiple_bufs()
3412 if (read_req.result == sizeof(test_buf)) { in fs_write_multiple_bufs()
3419 ASSERT_EQ(read_req.result, sizeof(test_buf) + sizeof(test_buf2)); in fs_write_multiple_bufs()
3421 ASSERT_OK(strcmp(buf, test_buf)); in fs_write_multiple_bufs()
3427 sizeof(test_buf) + sizeof(test_buf2), NULL); in fs_write_multiple_bufs()
3479 iovs[index] = uv_buf_init(test_buf, sizeof(test_buf)); in fs_write_alotof_bufs()
3489 ASSERT_EQ((size_t)write_req.result, sizeof(test_buf) * iovcount); in fs_write_alotof_bufs()
3493 buffer = malloc(sizeof(test_buf) * iovcount); in fs_write_alotof_bufs()
3497 iovs[index] = uv_buf_init(buffer + index * sizeof(test_buf), in fs_write_alotof_bufs()
3498 sizeof(test_buf)); in fs_write_alotof_bufs()
3515 ASSERT_EQ((size_t)read_req.result, sizeof(test_buf) * iovcount); in fs_write_alotof_bufs()
3518 ASSERT_OK(strncmp(buffer + index * sizeof(test_buf), in fs_write_alotof_bufs()
3519 test_buf, in fs_write_alotof_bufs()
3520 sizeof(test_buf))); in fs_write_alotof_bufs()
3599 iovs[index] = uv_buf_init(test_buf, sizeof(test_buf)); in fs_write_alotof_bufs_with_offset()
3609 ASSERT_EQ((size_t)write_req.result, sizeof(test_buf) * iovcount); in fs_write_alotof_bufs_with_offset()
3613 buffer = malloc(sizeof(test_buf) * iovcount); in fs_write_alotof_bufs_with_offset()
3617 iovs[index] = uv_buf_init(buffer + index * sizeof(test_buf), in fs_write_alotof_bufs_with_offset()
3618 sizeof(test_buf)); in fs_write_alotof_bufs_with_offset()
3623 if (r == sizeof(test_buf)) in fs_write_alotof_bufs_with_offset()
3627 ASSERT_EQ((size_t)read_req.result, sizeof(test_buf) * iovcount); in fs_write_alotof_bufs_with_offset()
3630 ASSERT_OK(strncmp(buffer + index * sizeof(test_buf), in fs_write_alotof_bufs_with_offset()
3631 test_buf, in fs_write_alotof_bufs_with_offset()
3632 sizeof(test_buf))); in fs_write_alotof_bufs_with_offset()
3815 ctx.size = sizeof(test_buf) * iovcount; in test_fs_partial()
3822 iovs[index] = uv_buf_init(buffer + index * sizeof(test_buf), sizeof(test_buf)); in test_fs_partial()
4056 iov = uv_buf_init(test_buf, sizeof(test_buf)); in TEST_IMPL()
4058 ASSERT_EQ(r, sizeof(test_buf)); in TEST_IMPL()
4064 ASSERT_EQ(r, sizeof(test_buf)); in TEST_IMPL()
4065 ASSERT_OK(strcmp(buf, test_buf)); in TEST_IMPL()