You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
missing coverage of closing brace in switch/case when const is declared #497
I still don't have an explanation why, but, with your original file, the coverage data emitted by V8 actually include an uncovered range at 144:145 - that is just after the } at line 8 and spans up to the } at line 9. So c8 can't actually do much about that.
This is probably worth raising an issue at v8 repository.
@tbiesemann , @bcoe , I opened an issue in node.js issue tracker. This is likely to be a v8 issue but since I'm using node.js to reproduce the issue, I have to start there.
There's another open c8 issue #229 asking about an uncovered line of a finally block. I am not sure whether these are related to the same underlying v8 issue but perhaps the repro linked in the comment can help with troubleshooting.
That other issue's coverage output looks eerily similar:
Activity
ericmorand commentedon Nov 17, 2023
I have the exact same issue covering this function:
https://gitlab.com/eric.morand/twing/-/blob/one-hundred/src/lib/parser.ts?ref_type=heads#L348
ericmorand commentedon Jun 28, 2024
@tbiesemann , in case you are still struggling with the issue, know that if you actually scope your cases body, the issue disappears:
I still don't have an explanation why, but, with your original file, the coverage data emitted by V8 actually include an uncovered range at 144:145 - that is just after the
}at line 8 and spans up to the}at line 9. So c8 can't actually do much about that.This is probably worth raising an issue at v8 repository.
ericmorand commentedon Jun 30, 2024
@tbiesemann , @bcoe , I opened an issue in node.js issue tracker. This is likely to be a v8 issue but since I'm using node.js to reproduce the issue, I have to start there.
archiehharris commentedon Jul 2, 2024
There's another open c8 issue #229 asking about an uncovered line of a finally block. I am not sure whether these are related to the same underlying v8 issue but perhaps the repro linked in the comment can help with troubleshooting.
That other issue's coverage output looks eerily similar: