From a6d68b8f66fa2e9978cad8486d2c6b9220b78c10 Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Mon, 2 Dec 2024 12:52:29 -0500 Subject: [PATCH 1/2] Update components/core/tests/test-StreamingCompression.cpp Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- components/core/tests/test-StreamingCompression.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/core/tests/test-StreamingCompression.cpp b/components/core/tests/test-StreamingCompression.cpp index a47012ca3..a7f2ee78c 100644 --- a/components/core/tests/test-StreamingCompression.cpp +++ b/components/core/tests/test-StreamingCompression.cpp @@ -58,7 +58,9 @@ TEST_CASE("StreamingCompression", "[StreamingCompression]") { decompressor = std::make_unique(); } - SECTION("LZMA compression") { + SECTION("LZMA compression (compression-only test)") { + // Note: Decompressor initialization is intentionally omitted as this is a + // compression-only test. See early termination logic below. compressor = std::make_unique(); } From 4fb6c0147a054fdf7970c10ccf64d2435eb13bce Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Tue, 3 Dec 2024 03:29:06 -0500 Subject: [PATCH 2/2] Update components/core/src/clp/streaming_compression/lzma/Compressor.cpp Co-authored-by: haiqi96 <14502009+haiqi96@users.noreply.github.com> --- .../core/src/clp/streaming_compression/lzma/Compressor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/core/src/clp/streaming_compression/lzma/Compressor.cpp b/components/core/src/clp/streaming_compression/lzma/Compressor.cpp index 11260c6e9..11bfdc5b5 100644 --- a/components/core/src/clp/streaming_compression/lzma/Compressor.cpp +++ b/components/core/src/clp/streaming_compression/lzma/Compressor.cpp @@ -21,8 +21,8 @@ using clp::streaming_compression::lzma::Compressor; * Initialize the Lzma compression stream * @param strm A pre-allocated `lzma_stream` object * @param compression_level - * @param dict_size Dictionary size that indicates how many bytes of the - * recently processed uncompressed data is kept in memory + * @param dict_size Dictionary size that specifies how many bytes of the + * recently processed uncompressed data to keep in the memory */ auto init_lzma_encoder(lzma_stream* strm, int compression_level, size_t dict_size) -> void { lzma_options_lzma options;