Skip to content

Dedupe symbol counting in pyrefly coverage#3848

Open
jorenham wants to merge 1 commit into
facebook:mainfrom
jorenham:coverage/dedupe-symbol-counting
Open

Dedupe symbol counting in pyrefly coverage#3848
jorenham wants to merge 1 commit into
facebook:mainfrom
jorenham:coverage/dedupe-symbol-counting

Conversation

@jorenham

Copy link
Copy Markdown
Contributor

Summary

Both build_module_report and filter_module_report_to_public were counting symbols in the same way, so there was quite a bit of code duplication. This extracts the shared counting logic into a new helper function.

Test Plan

Tests still pass (refactor only; no behavior changes)

@github-actions

Copy link
Copy Markdown

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants