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

Code Coverage + fix SoilIndexedDictionary>>#removeKey:ifAbsent: #477

Merged
merged 5 commits into from
Oct 13, 2023

Conversation

MarcusDenker
Copy link
Contributor

@MarcusDenker MarcusDenker commented Oct 13, 2023

  • add a version of #at: to #SoilIndexIterator (to not by mistake end up in Object>>#at:)

  • add failing test testRemoveKeyIfAbsentWithTransaction

  • make sure to evaluate the absent block in SoilIndexedDictionary>>#removeKey:ifAbsent: instead of raising an Error

  • SoilIndexedDictionary>> #do:

We do not check in any other method for isObjectId in case of no transaction, we can remove it here, too.

  • add a test for do: for indexed dict without transaction

    remove #ifAbsent:  case for the iterator. The iterator by constructin will have the key   

- SoilIndexedDictionary>> #do:

We do not check in any other method for isObjectId in case of no transaction, we can remove it here, too.

- add a test for do: for indexed dict without transaction
…up in Object>>#at:)

- add failing test testRemoveKeyIfAbsentWithTransaction
- make sure to evaluate the absent block in SoilIndexedDictionary>>#removeKey:ifAbsent: instead of raising an Error
@MarcusDenker MarcusDenker changed the title Small Improve coverage: remove unreachable code Code Coverage + fix SoilIndexedDictionary>>#removeKey:ifAbsent: Oct 13, 2023
@MarcusDenker MarcusDenker requested a review from noha October 13, 2023 08:35
@noha noha merged commit e334a87 into main Oct 13, 2023
3 checks passed
@MarcusDenker MarcusDenker deleted the 10-13-TestCoverage branch October 13, 2023 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants