Skip to content

test: add coverage for large string variant in PrefixPlusCounterGenerator#5550

Merged
wjones127 merged 2 commits intolance-format:mainfrom
XuQianJin-Stars:test/improve-prefix-generator-coverage
Dec 19, 2025
Merged

test: add coverage for large string variant in PrefixPlusCounterGenerator#5550
wjones127 merged 2 commits intolance-format:mainfrom
XuQianJin-Stars:test/improve-prefix-generator-coverage

Conversation

@XuQianJin-Stars
Copy link
Copy Markdown
Contributor

test: add coverage for large string variant in PrefixPlusCounterGenerator

The existing test only covered the is_large=false case. This commit adds
test coverage for the is_large=true branch that generates LargeStringArray,
bringing the test coverage to 100% for this generator.

Fixes the codecov report showing missing coverage on line 1080 in
rust/lance-datagen/src/generator.rs.

…ator

The existing test only covered the is_large=false case. This commit adds
test coverage for the is_large=true branch that generates LargeStringArray,
bringing the test coverage to 100% for this generator.

Fixes the codecov report showing missing coverage on line 1080 in
rust/lance-datagen/src/generator.rs.
@github-actions github-actions Bot added the chore label Dec 19, 2025
@XuQianJin-Stars XuQianJin-Stars changed the title test: add coverage for large string variant in PrefixPlusCounterGener… test: add coverage for large string variant in PrefixPlusCounterGenerator Dec 19, 2025
@wjones127 wjones127 self-assigned this Dec 19, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Contributor

@wjones127 wjones127 left a comment

Choose a reason for hiding this comment

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

Thanks!

@wjones127 wjones127 merged commit d8787a4 into lance-format:main Dec 19, 2025
27 of 28 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

PR Review

Summary: This is a clean, focused test addition that improves coverage for the is_large=true branch in PrefixPlusCounterGenerator.

Verdict: ✅ LGTM

No issues found. The test correctly exercises the LargeStringArray generation path (line 1080-1081) that was previously uncovered.

wjones127 added a commit to wjones127/lance that referenced this pull request Dec 30, 2025
…ator (lance-format#5550)

test: add coverage for large string variant in
PrefixPlusCounterGenerator

The existing test only covered the is_large=false case. This commit adds
test coverage for the is_large=true branch that generates
LargeStringArray,
bringing the test coverage to 100% for this generator.

Fixes the codecov report showing missing coverage on line 1080 in
rust/lance-datagen/src/generator.rs.

---------

Co-authored-by: Will Jones <willjones127@gmail.com>
jackye1995 pushed a commit to jackye1995/lance that referenced this pull request Jan 21, 2026
…ator (lance-format#5550)

test: add coverage for large string variant in
PrefixPlusCounterGenerator

The existing test only covered the is_large=false case. This commit adds
test coverage for the is_large=true branch that generates
LargeStringArray,
bringing the test coverage to 100% for this generator.

Fixes the codecov report showing missing coverage on line 1080 in
rust/lance-datagen/src/generator.rs.

---------

Co-authored-by: Will Jones <willjones127@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants