MCPcopy Create free account
hub / github.com/bytedance/bolt / TEST

Function TEST

bolt/common/file/tests/AsyncFileTest.cpp:98–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98TEST(AsyncLocalFile, writeAndRead) {
99 auto tempFile = ::exec::test::TempFilePath::create();
100 const auto& filename = tempFile->path.c_str();
101 remove(filename);
102 {
103 AsyncLocalWriteFile writeFile(filename, false, true);
104 writeDataAsync(&writeFile);
105 }
106 AsyncLocalReadFile readFile(filename);
107 readDataAsync(&readFile);
108}
109
110TEST(AsyncLocalFile, viaRegistry) {
111 filesystems::registerLocalFileSystem();

Callers

nothing calls this directly

Calls 14

writeDataAsyncFunction · 0.85
readDataAsyncFunction · 0.85
registerLocalFileSystemFunction · 0.85
getFileSystemFunction · 0.85
createFunction · 0.50
openAsyncFileForWriteMethod · 0.45
getMethod · 0.45
openAsyncFileForReadMethod · 0.45
removeMethod · 0.45
uringEnabledMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected