-
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: improving code coverage for SourceMap class #43285
Conversation
@italojs looks reasonable to me, can you provide a before and after example of the lines that this test covers specifically? Is this what the images you've provided represents (I'm surprised findEntry or new SourceMap wasn't covered prior to this). |
@bcoe you could find it in my screenshots, the code at the left side is the coverage after my tests, and the code on the right side is the coverage before my tests |
@bcoe my test ASan is getting failed(timeout), I didn't find anything in the node documentation about this test to run it locally or rerun it in gh actions |
@italojs "Test ASan" is flaky, don't worry about it. |
@italojs could I bother you to rebase your PR against head, looks like tests failed due to a merge conflict. I'll kick off tests as soon as you've pushed. |
5f30ecf
to
056c660
Compare
@italojs can you please remove the merge commits? |
9034d8e
to
391c2df
Compare
391c2df
to
998acd4
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
81a84d9
to
998acd4
Compare
covering malformed mappings scenario, sourceMap class
fix lint
998acd4
to
0e4364c
Compare
Hi @lpinca |
Cover malformed mappings scenario. PR-URL: #43285 Reviewed-By: Ben Coe <bencoe@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Landed in 6c1aa01. |
Cover malformed mappings scenario. PR-URL: nodejs#43285 Reviewed-By: Ben Coe <bencoe@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Cover malformed mappings scenario. PR-URL: #43285 Reviewed-By: Ben Coe <bencoe@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Cover malformed mappings scenario. PR-URL: #43285 Reviewed-By: Ben Coe <bencoe@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Cover malformed mappings scenario. PR-URL: #43285 Reviewed-By: Ben Coe <bencoe@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Cover malformed mappings scenario. PR-URL: nodejs/node#43285 Reviewed-By: Ben Coe <bencoe@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Improve code coverage for SourceMap class
refs:
I noted we don't cover the malformed mapping scenario like this or this
so I would like to cover this lines