-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Linter fixes for the crypto and encoding k6 modules #3460
Conversation
Converted to a draft for data race investigation 🤔 |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #3460 +/- ##
==========================================
- Coverage 73.23% 73.11% -0.12%
==========================================
Files 267 265 -2
Lines 20083 20064 -19
==========================================
- Hits 14707 14670 -37
- Misses 4463 4475 +12
- Partials 913 919 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
The latest commit does the trick and fixes the data race. However, I prefer to drop a |
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 agree with you, the RandomBytesFailure
does not look obviously useful to me, and I'd be happy with dropping it indeed 👍🏻
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 prefer to drop a RandomBytesFailure test case since, in my opinion, it's not a big value to have it
I don't have a strong opinion but I found it useful, it is testing that in case of an error returned from the reader then the randomBytes
function returns an error. Error handling, in the end, is business logic for the randomBytes
func.
What?
This PR fixes ~105 linter issues in
js/k6/crypto
andjs/k6/encoding
packages.It's recommended to start looking by commits.
Why?
As we agreed, we aim to fix most of the linter issues.
Part of #769
Checklist
make lint
), and all checks pass.make tests
), and all tests pass.Related PR(s)/Issue(s)