MCPcopy Create free account
hub / github.com/BlazingDB/blazingsql / TEST_F

Function TEST_F

io/tests/FileSystem/S3FileSystemTest/S3FileSystemTest.cpp:104–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102const std::string rootDirectoryName = "/test";
103
104TEST_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
124TEST_F(S3FileSystemTest, CreateDirectoryAndDeleteDirectoryWoSlash) {
125 const Uri dir(FileSystemType::S3, AUTHORITY, Path("/new folder 3"));

Callers

nothing calls this directly

Calls 15

isFileMethod · 0.80
isDirectoryMethod · 0.80
resizeMethod · 0.80
sizeMethod · 0.80
getFileTypeMethod · 0.80
PathClass · 0.50
UriClass · 0.50
makeDirectoryMethod · 0.45
existsMethod · 0.45
getFileStatusMethod · 0.45
removeMethod · 0.45
moveMethod · 0.45

Tested by

no test coverage detected