Lines Matching refs:len
31 size_t len; in TEST_IMPL() local
35 len = sizeof homedir; in TEST_IMPL()
38 r = uv_os_homedir(homedir, &len); in TEST_IMPL()
40 ASSERT_EQ(strlen(homedir), len); in TEST_IMPL()
41 ASSERT_GT(len, 0); in TEST_IMPL()
42 ASSERT_EQ(homedir[len], '\0'); in TEST_IMPL()
45 if (len == 3 && homedir[1] == ':') in TEST_IMPL()
48 ASSERT_NE(homedir[len - 1], '\\'); in TEST_IMPL()
50 if (len == 1) in TEST_IMPL()
53 ASSERT_NE(homedir[len - 1], '/'); in TEST_IMPL()
57 len = SMALLPATH; in TEST_IMPL()
58 r = uv_os_homedir(homedir, &len); in TEST_IMPL()
60 ASSERT_GT(len, SMALLPATH); in TEST_IMPL()
63 r = uv_os_homedir(NULL, &len); in TEST_IMPL()
67 len = 0; in TEST_IMPL()
68 r = uv_os_homedir(homedir, &len); in TEST_IMPL()
75 len = sizeof homedir; in TEST_IMPL()
76 r = uv_os_homedir(homedir, &len); in TEST_IMPL()