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

Function TestInvalidPathFromUri

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

Source from the content-addressed store, hash-verified

345 }
346
347 void TestInvalidPathFromUri(const std::string& uri, const std::string& expected_err) {
348 // Legitimate URI for the wrong filesystem
349 LocalFileSystem lfs;
350 ASSERT_THAT(lfs.PathFromUri(uri),
351 Raises(StatusCode::Invalid, testing::HasSubstr(expected_err)));
352 }
353
354 void CheckConcreteFile(const std::string& path, int64_t expected_size) {
355 ASSERT_OK_AND_ASSIGN(auto fn, PlatformFilename::FromString(path));

Callers

nothing calls this directly

Calls 2

RaisesFunction · 0.85
PathFromUriMethod · 0.45

Tested by

no test coverage detected