Lines Matching full:path
26 /* Dummy VFS implementation to check if VFS is called or not with expected path
33 static int dummy_open(void* ctx, const char * path, int flags, int mode) in dummy_open() argument
37 if (strcmp(dummy->match_path, path) == 0) { in dummy_open()
55 static DIR* dummy_opendir(void* ctx, const char* path) in dummy_opendir() argument
59 if (strcmp(dummy->match_path, path) == 0) { in dummy_opendir()
90 static void test_open(dummy_vfs_t* instance, const char* path, in test_open() argument
95 int fd = esp_vfs_open(__getreent(), path, flags, 0); in test_open()
108 static void test_opendir(dummy_vfs_t* instance, const char* path, in test_opendir() argument
112 DIR* dir = opendir(path); in test_opendir()
131 #define test_opened(instance, path) test_open(instance, path, true, true, __LINE__) argument
132 #define test_not_opened(instance, path) test_open(instance, path, true, false, __LINE__) argument
133 #define test_not_called(instance, path) test_open(instance, path, false, false, __LINE__) argument
135 #define test_dir_opened(instance, path) test_opendir(instance, path, true, true, __LINE__) argument
136 #define test_dir_not_opened(instance, path) test_opendir(instance, path, true, false, __LINE__) argument
137 #define test_dir_not_called(instance, path) test_opendir(instance, path, false, false, __LINE__) argument
269 TEST_CASE("vfs checks mount point path", "[vfs]")