-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8364213: (bf) Improve java/nio/Buffer/GetChars.java test comments #26512
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
base: master
Are you sure you want to change the base?
Conversation
Address code review comments which came in post integration/merge. Update/clarify test summary tag Document the values generated for arguments Move the endian-ness qualifier in the test descriptor string to not be first Change test method names to more closely match arg names of method under test
👋 Welcome back bokken! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
Webrevs
|
@AlanBateman - this is addressing your comments in prior review |
* <li>int stop - index (exclusive) into char[] where the CharBuffer should be limited</li> | ||
* <li>String - description of the test scenario</li> | ||
* </ul> | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That helps a bit but I think we need to break up charBufferArguments into simpler/maintainable methods that have clear comments to document the test cases that they generate. Right now it's just way too hard to see what is tested and not tested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have started by adding more documentation to the "random" tests.
I agree this makes it much easier to reason about what scenarios are covered.
It is actually making me wonder if the "static" tests are even worth keeping.
fix for random range generation (JDK-8364345)
/issue 8364345 |
@bokken |
cb.position(start); | ||
cb.limit(end); | ||
return cb; | ||
} | ||
|
||
/** | ||
* Generates random content to use for populating <i>cb</i> then calling through to {@code addCases(String, char[], CharBuffer, List)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try to keep the line lengths under 100 chars (80 is better).
It makes it possible to do size-by-size reviews that some reviewers prefer.
Address code review comments which came in post integration/merge of #26282.
Update/clarify test summary tag
Document the values generated for arguments
Move the endian-ness qualifier in the test descriptor string to not be first
Change test method names to more closely match arg names of method under test
Progress
Issues
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/26512/head:pull/26512
$ git checkout pull/26512
Update a local copy of the PR:
$ git checkout pull/26512
$ git pull https://git.openjdk.org/jdk.git pull/26512/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 26512
View PR using the GUI difftool:
$ git pr show -t 26512
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/26512.diff
Using Webrev
Link to Webrev Comment