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

Function TEST_F

gpcontrib/gpcloud/test/s3common_reader_test.cpp:40–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38};
39
40TEST_F(S3CommonReaderTest, OpenGZip) {
41 // test case for: the file format is gzip, then decompressReader should be called
42 EXPECT_CALL(mockS3Interface, checkCompressionType(_)).WillOnce(Return(S3_COMPRESSION_GZIP));
43 S3Params params("s3://abc/def");
44 params.setNumOfChunks(1);
45 params.setChunkSize(1024 * 1024 * 2);
46 this->open(params);
47
48 ASSERT_EQ(this->upstreamReader, &this->decompressReader);
49 ASSERT_TRUE(NULL != dynamic_cast<DecompressReader *>(this->upstreamReader));
50}
51
52TEST_F(S3CommonReaderTest, OpenPlain) {
53 // test case for: the file format is gzip, then S3keyReader should be called

Callers

nothing calls this directly

Calls 6

setNumOfChunksMethod · 0.80
setChunkSizeMethod · 0.45
openMethod · 0.45
setDataMethod · 0.45
setKeySizeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected