Skip to content

Fix #7855: testlib: add tests for ConcurrentMap to make sure its derived Sets are concurrent - #8599

Open
Himan-D wants to merge 1 commit into
google:masterfrom
Himan-D:fix-concurrent-map-spliterator
Open

Fix #7855: testlib: add tests for ConcurrentMap to make sure its derived Sets are concurrent#8599
Himan-D wants to merge 1 commit into
google:masterfrom
Himan-D:fix-concurrent-map-spliterator

Conversation

@Himan-D

@Himan-D Himan-D commented Aug 9, 2026

Copy link
Copy Markdown

This PR adds tests to ConcurrentMapTestSuiteBuilder and introduces ConcurrentMapSpliteratorTester to verify that the spliterators of derived collections (keySet, values, entrySet) from a ConcurrentMap report the CONCURRENT characteristic and do not report the SIZED characteristic. It also tests that Stream.toList() (or equivalent operations that depend on spliterator size logic) functions correctly without throwing an exception.

This PR was written with AI assistance.

@google-cla

google-cla Bot commented Aug 9, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Himan-D
Himan-D force-pushed the fix-concurrent-map-spliterator branch from 4a26c64 to c607b71 Compare August 9, 2026 06:37
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