| 102 | const std::string rootDirectoryName = "/test"; |
| 103 | |
| 104 | TEST_F(S3FileSystemTest, CreateDirectoryAndDeleteDirectoryWSlash) { |
| 105 | const Uri dir(FileSystemType::S3, AUTHORITY, Path("/new folder 2/")); |
| 106 | |
| 107 | const bool created = s3FileSystem->makeDirectory(dir); |
| 108 | EXPECT_TRUE(created); |
| 109 | |
| 110 | bool exists = s3FileSystem->exists(dir); |
| 111 | EXPECT_TRUE(exists); |
| 112 | |
| 113 | const FileStatus fileStatus = s3FileSystem->getFileStatus(dir); |
| 114 | EXPECT_FALSE(fileStatus.isFile()); |
| 115 | EXPECT_TRUE(fileStatus.isDirectory()); |
| 116 | |
| 117 | const bool deleted = s3FileSystem->remove(dir); |
| 118 | EXPECT_TRUE(deleted); |
| 119 | |
| 120 | exists = s3FileSystem->exists(dir); |
| 121 | EXPECT_FALSE(exists); |
| 122 | } |
| 123 | |
| 124 | TEST_F(S3FileSystemTest, CreateDirectoryAndDeleteDirectoryWoSlash) { |
| 125 | const Uri dir(FileSystemType::S3, AUTHORITY, Path("/new folder 3")); |
nothing calls this directly
no test coverage detected