test: add coverage for utf8CheckIncomplete()#11419
Closed
sushi90 wants to merge 4 commits intonodejs:masterfrom
sushi90:master
Closed
test: add coverage for utf8CheckIncomplete()#11419sushi90 wants to merge 4 commits intonodejs:masterfrom sushi90:master
sushi90 wants to merge 4 commits intonodejs:masterfrom
sushi90:master
Conversation
addaleax
reviewed
Feb 16, 2017
test/parallel/test-string-decoder.js
Outdated
| assert.strictEqual(decoder.write(Buffer.from('41F2', 'hex')), '\ufffdA'); | ||
| assert.strictEqual(decoder.end(), '\ufffd'); | ||
|
|
||
| //Additional utf8Text test |
Member
There was a problem hiding this comment.
Can you update the PR with a space after the //?
cjihrig
approved these changes
Feb 16, 2017
Member
targos
approved these changes
Feb 18, 2017
Member
|
Landed in 48f8869. Thank you for the contribution! |
targos
pushed a commit
that referenced
this pull request
Feb 18, 2017
This commit adds code coverage to utf8CheckIncomplete(), when the lastNeed is greater than buffer length. PR-URL: #11419 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
addaleax
pushed a commit
that referenced
this pull request
Feb 22, 2017
This commit adds code coverage to utf8CheckIncomplete(), when the lastNeed is greater than buffer length. PR-URL: #11419 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
Merged
jasnell
pushed a commit
that referenced
this pull request
Mar 7, 2017
This commit adds code coverage to utf8CheckIncomplete(), when the lastNeed is greater than buffer length. PR-URL: #11419 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
Member
|
A backport PR would be required to land in v4 |
MylesBorins
pushed a commit
that referenced
this pull request
Mar 9, 2017
This commit adds code coverage to utf8CheckIncomplete(), when the lastNeed is greater than buffer length. PR-URL: #11419 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
Merged
This was referenced Nov 29, 2023
This was referenced Dec 10, 2023
This was referenced Dec 10, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit adds code coverage to utf8CheckIncomplete(), which the lastNeed is greater than buffer length.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test