Visitar URL original
fix: json region contexts only include the region's lines by patrick-immometrica · Pull Request #2375 · coveragepy/coveragepy · GitHub
Skip to content

fix: json region contexts only include the region's lines - #2375

Open
patrick-immometrica wants to merge 1 commit into
coveragepy:mainfrom
patrick-immometrica:json-region-contexts
Open

patrick-immometrica wants to merge 1 commit into
coveragepy:mainfrom
patrick-immometrica:json-region-contexts

Conversation

@patrick-immometrica

Copy link
Copy Markdown

Closes #2374.

The file's contexts are now read once in report_one_file, and each function or class entry gets only the lines inside it. This also drops the extra contexts_by_lineno() query per region.

@patrick-immometrica
patrick-immometrica marked this pull request as ready for review November 9, 2026 14:51

This branch has not been deployed

No deployments
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.

json: show_contexts gives every function and class the whole file's contexts

1 participant