MCPcopy Create free account
hub / github.com/apache/arrow / CheckConcreteFile

Function CheckConcreteFile

cpp/src/arrow/filesystem/localfs_test.cc:354–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352 }
353
354 void CheckConcreteFile(const std::string& path, int64_t expected_size) {
355 ASSERT_OK_AND_ASSIGN(auto fn, PlatformFilename::FromString(path));
356 ASSERT_OK_AND_ASSIGN(FileDescriptor fd, ::arrow::internal::FileOpenReadable(fn));
357 auto result = ::arrow::internal::FileGetSize(fd.fd());
358 ASSERT_OK_AND_ASSIGN(int64_t size, result);
359 ASSERT_EQ(size, expected_size);
360 }
361
362 static void CheckNormalizePath(const std::shared_ptr<FileSystem>& fs) {}
363

Callers

nothing calls this directly

Calls 2

FileGetSizeFunction · 0.85
fdMethod · 0.45

Tested by

no test coverage detected