mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
fix(coverage): do not generate script coverage with empty url (#24007)
closes #24004
This commit is contained in:
parent
9aa593cd5d
commit
8b5089e41f
2 changed files with 7 additions and 1 deletions
|
@ -68,12 +68,14 @@ impl crate::worker::CoverageCollector for CoverageCollector {
|
|||
|
||||
let script_coverages = self.take_precise_coverage().await?.result;
|
||||
for script_coverage in script_coverages {
|
||||
// Filter out internal and http/https JS files from being included in coverage reports
|
||||
// Filter out internal and http/https JS files and eval'd scripts
|
||||
// from being included in coverage reports
|
||||
if script_coverage.url.starts_with("ext:")
|
||||
|| script_coverage.url.starts_with("[ext:")
|
||||
|| script_coverage.url.starts_with("http:")
|
||||
|| script_coverage.url.starts_with("https:")
|
||||
|| script_coverage.url.starts_with("node:")
|
||||
|| script_coverage.url.is_empty()
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue