-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
ConcurrentDictionary Test Coverage | TestGetOrAddOrUpdate #83429
Comments
Tagging subscribers to this area: @dotnet/area-system-collections Issue Details
While the other switch-case statements make use of the lambda arguments, the case statement on line 547 does not: Line 547 in 86550d7
Should this test case be more thorough/complete in testing these overloads and their lambda arguments, or is this test case good enough as it is?
|
Can you come up with a change to the source code for ConcurrentDictionary that would break its functionality but it would still pass all of these tests? |
This issue has been marked |
This seems to pass the existing tests in
This line: Line 1447 in 86550d7
Changed to something like this: TValue newValue = updateValueFactory(key, addValue); When |
If that's the case then please feel free to submit a PR that augments the tests in a way where they'd fail if that broke. |
While the other switch-case statements make use of the lambda arguments, the case statement on line 547 does not:
runtime/src/libraries/System.Collections.Concurrent/tests/ConcurrentDictionary/ConcurrentDictionaryTests.cs
Line 547 in 86550d7
Should this test case be more thorough/complete in testing these overloads and their lambda arguments, or is this test case good enough as it is?
The text was updated successfully, but these errors were encountered: