Skip to content

test: increase coverage of buffer - #12714

Closed
DavidCai1111 wants to merge 1 commit into
nodejs:masterfrom
DavidCai1111:test/buffer-coverage
Closed

test: increase coverage of buffer#12714
DavidCai1111 wants to merge 1 commit into
nodejs:masterfrom
DavidCai1111:test/buffer-coverage

Conversation

@DavidCai1111

Copy link
Copy Markdown
Member

Increase coverage of lib/buffer.js.

This should get code coverage on lib/buffer.js to 100%.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

test

@nodejs-github-botnodejs-github-bot added the test Issues and PRs related to the tests. label Apr 28, 2017
@DavidCai1111DavidCai1111 added the buffer Issues and PRs related to the buffer subsystem. label Apr 28, 2017
@Trott

Trott commented Apr 28, 2017

Copy link
Copy Markdown
Member

Hooray! It was at 100% a couple weeks ago. It will be nice to have it back there!

@DavidCai1111

Copy link
Copy Markdown
MemberAuthor

@mhdawsonmhdawson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

DavidCai1111 pushed a commit that referenced this pull request May 3, 2017
Increase coverage of lib/buffer.js.
PR-URL: #12714
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@DavidCai1111

Copy link
Copy Markdown
MemberAuthor

Landed in 04796ee.

@DavidCai1111DavidCai1111 mentioned this pull request May 4, 2017
3 tasks
anchnk pushed a commit to anchnk/node that referenced this pull request May 6, 2017
Increase coverage of lib/buffer.js.
PR-URL: nodejs#12714
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@jasnelljasnell mentioned this pull request May 11, 2017
@gibfahngibfahn mentioned this pull request Jun 15, 2017
3 tasks
@gibfahn

Copy link
Copy Markdown
Member

Lands cleanly but fails with this error:

nodegit:(v6.x-staging)tools/test.pyparallel/test-buffer-bytelength.js===releasetest-buffer-bytelength===Path: parallel/test-buffer-bytelengthassert.js:81thrownewassert.AssertionError({^AssertionError: 0===-1atObject.<anonymous>(/Users/gib/wrk/com/DANGER/node/test/parallel/test-buffer-bytelength.js:15:8)atModule._compile(module.js:570:32)atObject.Module._extensions..js(module.js:579:10)atModule.load(module.js:487:32)attryModuleLoad(module.js:446:12)atFunction.Module._load(module.js:438:3)atModule.runMain(module.js:604:10)atrun(bootstrap_node.js:389:7)atstartup(bootstrap_node.js:149:9)atbootstrap_node.js:504:3Command: out/Release/node/Users/gib/wrk/com/DANGER/node/test/parallel/test-buffer-bytelength.js[00:00|%100|+0|-1]: Done

@gibfahn

Copy link
Copy Markdown
Member

Should this be backported to v6.x-staging? If yes please follow the guide and raise a backport PR, if no let me know or add the dont-land-on label.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bufferIssues and PRs related to the buffer subsystem.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@DavidCai1111@Trott@gibfahn@jasnell@cjihrig@mhdawson@nodejs-github-bot@davidtaikocha