Skip to content
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

test: buffer.indexOf: add more number cases #57200

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nektro
Copy link
Contributor

@nektro nektro commented Feb 24, 2025

add some more cases that assert the success result is relative to the start of the Buffer and not the byteOffset parameter
existing number cases only checked 0 and -1 returns

discovered by oven-sh/bun#17555

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Feb 24, 2025
Copy link

codecov bot commented Feb 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.28%. Comparing base (22ac597) to head (3bedf82).
Report is 29 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #57200      +/-   ##
==========================================
- Coverage   90.31%   90.28%   -0.03%     
==========================================
  Files         630      630              
  Lines      184513   184618     +105     
  Branches    36073    36102      +29     
==========================================
+ Hits       166644   166685      +41     
- Misses      10962    11005      +43     
- Partials     6907     6928      +21     

see 34 files with indirect coverage changes

@lpinca lpinca added the request-ci Add this label to start a Jenkins CI on a PR. label Feb 25, 2025
@lpinca
Copy link
Member

lpinca commented Feb 25, 2025

The commit message does not follow the guidelines. Can you please fix it?

@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 25, 2025
@nodejs-github-bot
Copy link
Collaborator

@nektro
Copy link
Contributor Author

nektro commented Feb 25, 2025

The commit message does not follow the guidelines. Can you please fix it?

would test: add more number cases for buffer.indexOf be a better fit?

@lpinca
Copy link
Member

lpinca commented Feb 25, 2025

Yes, perfect.

@lpinca lpinca added the request-ci Add this label to start a Jenkins CI on a PR. label Feb 26, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 26, 2025
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

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 the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants