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

CBL-5894 : Update IndexUpdater API and sync illegal behavior #549

Merged
merged 2 commits into from
Jun 28, 2024
Merged

Conversation

pasin
Copy link
Contributor

@pasin pasin commented Jun 28, 2024

  • Updated IndexUpdater API to sync illegal behavior with the other platforms : If functions have out error, return out error; otherwise abort.

  • Added TestIndexUpdaterUseAfterFinished.

  • Used LiteCore 3.2.0-210

* Added Test 27. TestIndexUpdaterUseAfterFinished
* Merged Test 26 into Test 27.
* Updated IndexUpdater API to sync illegal behavior with the other platforms : If functions have out error, return out error; otherwise abort.

* Updated LazyVectorIndex tests

* Used LiteCore 3.2.0-210
@cbl-bot
Copy link

cbl-bot commented Jun 28, 2024

Code Coverage Results:

Branches Functions Instantiations Lines Regions
77.36 93.86 41.79 90.48 86.13

auto value = CBLIndexUpdater_Value(updater, i);
CHECK(!value);
}
// Note: These two functions cannot be tested as they will abort when index is out-of-bound.
Copy link
Member

Choose a reason for hiding this comment

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

We made this undefined behavior now, so really there is no reason to test this. It's not legal to do and that means the behavior is "whatever".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed. Will remove it in later commit.

@borrrden
Copy link
Member

You really should branch if you are going to use the release/3.2 branch of Core

@pasin
Copy link
Contributor Author

pasin commented Jun 28, 2024

Will branch it very soon.

@pasin pasin merged commit fcdc9f0 into master Jun 28, 2024
6 of 7 checks passed
@pasin pasin deleted the CBL-5894 branch June 28, 2024 03:02
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