Skip to content

[TS PBT] Verify admitted statement execution scope - #694

Open
CaelmBleidd wants to merge 3 commits into
caelmbleidd/pbt-preserve-statements-after-branch-timeoutfrom
caelmbleidd/pbt-statement-execution-scope
Open

CaelmBleidd wants to merge 3 commits into
caelmbleidd/pbt-preserve-statements-after-branch-timeoutfrom
caelmbleidd/pbt-statement-execution-scope

Conversation

@CaelmBleidd

Copy link
Copy Markdown
Member

Admitted V8 snapshots can omit uncalled functions. Istanbul can then attribute an enclosing range to their bodies. A zero-count block can also fail to clear a remapped source line. Either case can incorrectly remove statement goals from the symbolic phase.

Use the actual generated script, its inline source map, and its owning V8 function and block to confirm TypeScript statement-line counts. Omit ambiguous lines with a diagnostic. The statement report is independent of exact branch conversion and remains available when that conversion reaches its deadline. Bound the work on the concrete path and report partial coverage for files that exceed that bound.

This PR is stacked on #665. The branch-owner fix remains in #669.

Validation includes a property run with a taken and untaken arm, called and uncalled nested bodies, an uncalled method, and a forced branch deadline. Additional cases cover mixed field and method lines in all four TypeScript module formats and older adapters without a statement report. The LinkedList probe retains hits on lines 113 and 115 and records zero on lines 117, 153, and 154.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant