Skip to content

FIX: handling multi-target (from-)import statements#434

Open
TTsangSC wants to merge 13 commits into
pyutils:mainfrom
TTsangSC:433-fix
Open

FIX: handling multi-target (from-)import statements#434
TTsangSC wants to merge 13 commits into
pyutils:mainfrom
TTsangSC:433-fix

Test fixups in `test_autoprofile.py`

081d718
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jul 23, 2026 in 1s

84.95% (+2.18%) compared to 5845332

View this Pull Request on Codecov

84.95% (+2.18%) compared to 5845332

Details

Codecov Report

❌ Patch coverage is 91.01796% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.95%. Comparing base (5845332) to head (081d718).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
line_profiler/autoprofile/_import_targets.py 90.14% 3 Missing and 4 partials ⚠️
line_profiler/autoprofile/profmod_extractor.py 91.11% 2 Missing and 2 partials ⚠️
...ne_profiler/autoprofile/ast_profile_transformer.py 92.59% 1 Missing and 1 partial ⚠️
line_profiler/autoprofile/ast_tree_profiler.py 91.66% 1 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #434      +/-   ##
==========================================
+ Coverage   82.76%   84.95%   +2.18%     
==========================================
  Files          20       21       +1     
  Lines        2298     2412     +114     
  Branches      361      376      +15     
==========================================
+ Hits         1902     2049     +147     
+ Misses        300      263      -37     
- Partials       96      100       +4     
Files with missing lines Coverage Δ
...ne_profiler/autoprofile/ast_profile_transformer.py 84.37% <92.59%> (+36.64%) ⬆️
line_profiler/autoprofile/ast_tree_profiler.py 96.66% <91.66%> (+10.62%) ⬆️
line_profiler/autoprofile/profmod_extractor.py 83.96% <91.11%> (+22.96%) ⬆️
line_profiler/autoprofile/_import_targets.py 90.14% <90.14%> (ø)

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7c1e41f...081d718. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.