MCPcopy Create free account
hub / github.com/apache/cloudberry / TEST_F

Function TEST_F

gpcontrib/gpcloud/test/s3bucket_reader_test.cpp:50–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48};
49
50TEST_F(S3BucketReaderTest, OpenURL) {
51 string url = "https://s3-us-east-2.amazonaws.com/s3test.pivotal.io/whatever";
52 S3Params params(url);
53 EXPECT_CALL(s3Interface, listBucket(_)).Times(1).WillOnce(Return(ListBucketResult()));
54
55 EXPECT_NO_THROW(bucketReader->open(params));
56}
57
58TEST_F(S3BucketReaderTest, OpenThrowExceptionWhenS3InterfaceIsNULL) {
59 bucketReader->setS3InterfaceService(NULL);

Callers

nothing calls this directly

Calls 7

ListBucketResultClass · 0.85
S3RuntimeErrorClass · 0.85
setUpstreamReaderMethod · 0.80
MockReadClass · 0.70
openMethod · 0.45
setS3InterfaceServiceMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected