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

Function TestMain

cpp/src/arrow/filesystem/s3fs_narrative_test.cc:225–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225void TestMain(int argc, char** argv) {
226 S3GlobalOptions options;
227 options.log_level = FLAGS_debug
228 ? S3LogLevel::Debug
229 : (FLAGS_verbose ? S3LogLevel::Warn : S3LogLevel::Fatal);
230 ASSERT_OK(InitializeS3(options));
231
232 if (FLAGS_region.empty() && FLAGS_endpoint.empty()) {
233 ASSERT_OK_AND_ASSIGN(FLAGS_region, ResolveS3BucketRegion(FLAGS_bucket));
234 }
235
236 if (FLAGS_create) {
237 CreateBucket(argc, argv);
238 }
239 if (FLAGS_clear) {
240 ClearBucket(argc, argv);
241 }
242 if (FLAGS_test) {
243 TestBucket(argc, argv);
244 }
245
246 ASSERT_OK(FinalizeS3());
247}
248
249} // namespace arrow::fs
250

Callers 1

mainFunction · 0.85

Calls 8

InitializeS3Function · 0.85
ResolveS3BucketRegionFunction · 0.85
CreateBucketFunction · 0.85
ClearBucketFunction · 0.85
TestBucketFunction · 0.85
ASSERT_OK_AND_ASSIGNFunction · 0.70
FinalizeS3Function · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected