Skip to content

Conversation

@michielp1807
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Nov 13, 2025

Codecov Report

❌ Patch coverage is 51.51515% with 80 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
lib/dictBuilder/zdict.rs 51.03% 71 Missing ⚠️
lib/compress/huf_compress.rs 50.00% 4 Missing ⚠️
lib/compress/zstd_compress.rs 33.33% 4 Missing ⚠️
lib/dictBuilder/cover.rs 66.66% 1 Missing ⚠️
Flag Coverage Δ
test-aarch64-apple-darwin 33.63% <51.51%> (-0.08%) ⬇️
test-aarch64-unknown-linux-gnu 31.58% <49.09%> (-0.02%) ⬇️
test-i686-unknown-linux-gnu 31.64% <49.09%> (-0.03%) ⬇️
test-x86_64-unknown-linux-gnu 33.67% <49.09%> (-0.15%) ⬇️

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

Files with missing lines Coverage Δ
lib/compress/zstd_compress_literals.rs 70.56% <100.00%> (ø)
lib/dictBuilder/fastcover.rs 78.86% <100.00%> (ø)
lib/dictBuilder/cover.rs 80.82% <66.66%> (ø)
lib/compress/huf_compress.rs 81.49% <50.00%> (ø)
lib/compress/zstd_compress.rs 38.89% <33.33%> (-0.56%) ⬇️
lib/dictBuilder/zdict.rs 73.52% <51.03%> (-0.39%) ⬇️

... and 4 files with indirect coverage changes

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

@michielp1807
Copy link
Collaborator Author

Patch coverage is low due to many small changes in error handling and debug logs

Copy link
Member

@folkertdev folkertdev left a comment

Choose a reason for hiding this comment

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

Some nits, looks good overall

c = b'.';

/// Prints the bytes as characters, with non-printable characters replaced by '.'
fn ZDICT_printHex(bytes: &[u8]) {
Copy link
Member

Choose a reason for hiding this comment

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

can you leave a note here that this is only used for debug output? The implementation locks and releases stderr for every character: we could do that more efficiently but I don't think we should bother.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I couldn't help it to improve it anyway, now it's just a single eprint! :)

return Error::dictionaryCreation_failed.to_error_code();
}
ZDICT_initDictItem(dictList);
dictList.as_mut().unwrap().init();
Copy link
Member

Choose a reason for hiding this comment

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

this probably gets cleaned up; the init function then won't even be needed

@folkertdev folkertdev merged commit 9e05b9c into main Nov 17, 2025
19 checks passed
@michielp1807 michielp1807 deleted the zdict-cleanup branch November 17, 2025 09:17
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.

3 participants