-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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: add test for zlib.create*Raw() #8306
Conversation
Currently, there are no tests that exercise `zlib.createInflateRaw()` or `zlib.createDeflateRaw()`. This adds minimal tests that invoke the functions and confirm that they return `zlib.InflateRaw`/`zlib.DeflateRaw` objects.
CI is green, LGTM |
{ | ||
const deflateRaw = zlib.createDeflateRaw(); | ||
assert(deflateRaw instanceof zlib.DeflateRaw); | ||
} |
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.
are these necessary?
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.
You mean the scoping braces? No, not strictly necessary, but desirable IMO. Having every test in its own scope means (among other benefits) that you can freely add and remove variables in one test without worrying about side effects in any of the other tests. Right now, there's only two tests in this file but ideally more tests will be added over time.
LGTM |
Currently, there are no tests that exercise `zlib.createInflateRaw()` or `zlib.createDeflateRaw()`. This adds minimal tests that invoke the functions and confirm that they return `zlib.InflateRaw`/`zlib.DeflateRaw` objects. PR-URL: nodejs#8306 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Landed in f6e33ef |
Currently, there are no tests that exercise `zlib.createInflateRaw()` or `zlib.createDeflateRaw()`. This adds minimal tests that invoke the functions and confirm that they return `zlib.InflateRaw`/`zlib.DeflateRaw` objects. PR-URL: nodejs#8306 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Currently, there are no tests that exercise `zlib.createInflateRaw()` or `zlib.createDeflateRaw()`. This adds minimal tests that invoke the functions and confirm that they return `zlib.InflateRaw`/`zlib.DeflateRaw` objects. PR-URL: #8306 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Currently, there are no tests that exercise `zlib.createInflateRaw()` or `zlib.createDeflateRaw()`. This adds minimal tests that invoke the functions and confirm that they return `zlib.InflateRaw`/`zlib.DeflateRaw` objects. PR-URL: #8306 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Currently, there are no tests that exercise `zlib.createInflateRaw()` or `zlib.createDeflateRaw()`. This adds minimal tests that invoke the functions and confirm that they return `zlib.InflateRaw`/`zlib.DeflateRaw` objects. PR-URL: #8306 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Currently, there are no tests that exercise `zlib.createInflateRaw()` or `zlib.createDeflateRaw()`. This adds minimal tests that invoke the functions and confirm that they return `zlib.InflateRaw`/`zlib.DeflateRaw` objects. PR-URL: #8306 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Currently, there are no tests that exercise `zlib.createInflateRaw()` or `zlib.createDeflateRaw()`. This adds minimal tests that invoke the functions and confirm that they return `zlib.InflateRaw`/`zlib.DeflateRaw` objects. PR-URL: #8306 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Checklist
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
test zlib
Description of change
Currently, there are no tests that exercise
zlib.createInflateRaw()
orzlib.createDeflateRaw()
.This adds minimal tests that invoke the functions and confirm that they
return
zlib.InflateRaw
/zlib.DeflateRaw
objects.