Skip to content

More initialization cleanup - #390

Merged
folkertdev merged 10 commits into
mainfrom
init-cleanup
Sep 13, 2026
Merged

folkertdev merged 10 commits into
mainfrom
init-cleanup

Conversation

@michielp1807

Copy link
Copy Markdown
Collaborator

No description provided.

@codecov

codecov Bot commented Sep 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 74.19355% with 32 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
programs/fileio.rs 0.00% 12 Missing ⚠️
lib/compress/zstd_ldm.rs 0.00% 6 Missing ⚠️
lib/compress/zstd_opt.rs 0.00% 4 Missing ⚠️
programs/benchzstd.rs 0.00% 4 Missing ⚠️
lib/compress/huf_compress.rs 87.50% 2 Missing ⚠️
lib/common/bitstream.rs 96.55% 1 Missing ⚠️
lib/compress/zstd_compress.rs 96.00% 1 Missing ⚠️
lib/compress/zstd_compress_superblock.rs 0.00% 1 Missing ⚠️
lib/dictBuilder/cover.rs 90.90% 1 Missing ⚠️
Flag Coverage Δ
test-aarch64-apple-darwin 43.27% <74.19%> (+0.35%) ⬆️
test-aarch64-unknown-linux-gnu 41.48% <69.35%> (-0.12%) ⬇️
test-i686-unknown-linux-gnu 41.56% <66.93%> (-0.12%) ⬇️
test-x86_64-unknown-linux-gnu 43.15% <74.19%> (-0.22%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
lib/compress/zstd_compress_internal.rs 77.54% <100.00%> (+0.53%) ⬆️
lib/decompress/zstd_decompress.rs 64.80% <100.00%> (-0.22%) ⬇️
lib/dictBuilder/fastcover.rs 78.43% <100.00%> (-0.27%) ⬇️
lib/legacy/zstd_v05.rs 54.69% <ø> (ø)
lib/legacy/zstd_v06.rs 56.60% <ø> (ø)
lib/zstd.rs 48.33% <ø> (ø)
lib/common/bitstream.rs 97.93% <96.55%> (-0.07%) ⬇️
lib/compress/zstd_compress.rs 53.87% <96.00%> (+1.76%) ⬆️
lib/compress/zstd_compress_superblock.rs 0.00% <0.00%> (ø)
lib/dictBuilder/cover.rs 80.86% <90.90%> (+1.56%) ⬆️
... and 5 more

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@folkertdev folkertdev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some nits that we can pick up later

}

let startPtr = startPtr as *mut u8;
let endPtr = startPtr.add(dstCapacity).sub(size_of::<size_t>());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be safe with wrapping_{add ,sub}

Comment on lines +1273 to +1276
let mut bitC = match HUF_CStream_t::new(dst, dstSize) {
Ok(bitC) => bitC,
Err(_) => return 0,
};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shorter as let-else

@folkertdev
folkertdev merged commit 222762b into main Sep 13, 2026
22 checks passed
@michielp1807
michielp1807 deleted the init-cleanup branch September 14, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants