Skip to content

test: add two-byte decode tests for nbytes - #67802

Draft
mertcanaltin wants to merge 1 commit into
nodejs:mainfrom
mertcanaltin:test-buffer-two-byte-decode
Draft

mertcanaltin wants to merge 1 commit into
nodejs:mainfrom
mertcanaltin:test-buffer-two-byte-decode

Conversation

@mertcanaltin

Copy link
Copy Markdown
Member

add two-byte decode tests for nbytes.

@lemire now Buffer.from('中中中中', 'base64') does not return the same result as '----'

refs: nodejs/nbytes#17
refs: #67688

Refs: nodejs/nbytes#17
Assisted-by: a coding agent
Signed-off-by: Mert Can Altin <mertgold60@gmail.com>
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to Node.js core tests and test infrastructure. labels Nov 26, 2026
@mertcanaltin

Copy link
Copy Markdown
Member Author

fyi @aduh95 the shared libraries errors are expected, they use nbytes 0.1.4. I will wait for this update NixOS/nixpkgs#591674

@codecov

codecov Bot commented Nov 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.49%. Comparing base (2dd55c3) to head (9d2a68a).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #67802      +/-   ##
==========================================
- Coverage   90.50%   90.49%   -0.01%     
==========================================
  Files         805      805              
  Lines      285818   285812       -6     
  Branches    55182    55175       -7     
==========================================
- Hits       258666   258655      -11     
+ Misses      17251    17239      -12     
- Partials     9901     9918      +17     

see 30 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mertcanaltin
mertcanaltin marked this pull request as draft November 27, 2026 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. test Issues and PRs related to Node.js core tests and test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants