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

Method SetUpInternal

cpp/src/arrow/filesystem/azurefs_test.cc:374–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372
373 protected:
374 void SetUpInternal(BaseAzureEnv* env) {
375 env_ = env;
376 random::pcg32_fast rng((std::random_device()()));
377 container_name_ = PreexistingData::RandomContainerName(rng);
378 ASSERT_OK_AND_ASSIGN(auto options, MakeOptions(env_));
379 ASSERT_OK_AND_ASSIGN(azure_fs_, AzureFileSystem::Make(options));
380 ASSERT_OK(azure_fs_->CreateDir(container_name_, true));
381 fs_ = std::make_shared<SubTreeFileSystem>(container_name_, azure_fs_);
382 }
383
384 std::shared_ptr<FileSystem> GetEmptyFileSystem() override { return fs_; }
385

Callers

nothing calls this directly

Calls 3

ASSERT_OK_AND_ASSIGNFunction · 0.70
MakeFunction · 0.50
CreateDirMethod · 0.45

Tested by

no test coverage detected