| 38 | }; |
| 39 | |
| 40 | TEST_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 | |
| 52 | TEST_F(S3CommonReaderTest, OpenPlain) { |
| 53 | // test case for: the file format is gzip, then S3keyReader should be called |
nothing calls this directly
no test coverage detected