Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[c++] Extend some unit-test cases for new shape #3068

Merged
merged 2 commits into from
Sep 27, 2024
Merged

Conversation

johnkerl
Copy link
Member

Issue and/or context: As tracked on issue #2407 / [sc-51048].

Note that the intended Python and R API changes are all agreed on and finalized as described in #2407.

Changes:

For various debugs a while back I'd apparently left some Catch2 flags to on or off vs. looping over both. This PR fixes those overssights.

Notes for Reviewer:

Copy link

codecov bot commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.94%. Comparing base (5db8222) to head (a3bf767).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3068      +/-   ##
==========================================
+ Coverage   89.79%   89.94%   +0.14%     
==========================================
  Files          41       41              
  Lines        4107     4107              
==========================================
+ Hits         3688     3694       +6     
+ Misses        419      413       -6     
Flag Coverage Δ
python 89.94% <ø> (+0.14%) ⬆️

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

Components Coverage Δ
python_api 89.94% <ø> (+0.14%) ⬆️
libtiledbsoma ∅ <ø> (∅)

@@ -1422,11 +1422,6 @@ void SOMAArray::_set_current_domain_from_shape(
// Variant-indexed dataframes must use a separate path
_check_dims_are_int64();

if (_get_current_domain().is_empty()) {
Copy link
Member Author

Choose a reason for hiding this comment

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

This was wrong, and not caught sooner b/c I didn't loop over both false & true in the unit-test code.

The is-empty check is done in both callers of this method.

@johnkerl
Copy link
Member Author

@nguyenv ready for round two! :)

@johnkerl johnkerl changed the title [c++] Extend some unit-test cases [c++] Extend some unit-test cases for new shape Sep 26, 2024
@johnkerl johnkerl merged commit 1d35e0b into main Sep 27, 2024
25 checks passed
@johnkerl johnkerl deleted the kerl/ut-generate branch September 27, 2024 01:49
@johnkerl
Copy link
Member Author

Thanks @nguyenv !

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