Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break splitBlocksOn into a new hook #280

Merged
merged 5 commits into from
Oct 4, 2024
Merged

Conversation

yuxincs
Copy link
Contributor

@yuxincs yuxincs commented Sep 16, 2024

Similar to #279, this PR breaks the logic that splits the CFG block upon seeing a trusted function into a separate strongly-typed hook for better maintainability and slightly better performance (due to fewer lookups in hook points). It introduces no functionality changes.

@yuxincs yuxincs marked this pull request as ready for review September 16, 2024 03:52
Copy link

codecov bot commented Sep 16, 2024

Codecov Report

Attention: Patch coverage is 74.45255% with 35 lines in your changes missing coverage. Please review.

Project coverage is 87.63%. Comparing base (45bee80) to head (f9f73a6).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
hook/split_blocks_on.go 72.44% 18 Missing and 17 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #280      +/-   ##
==========================================
- Coverage   87.83%   87.63%   -0.21%     
==========================================
  Files          63       65       +2     
  Lines        7885     7916      +31     
==========================================
+ Hits         6926     6937      +11     
- Misses        776      798      +22     
+ Partials      183      181       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Sep 16, 2024

Golden Test

Note

✅ NilAway errors reported on standard libraries are identical.

3271 errors on base branch (main, 45bee80)
3271 errors on test branch (e14d87d)

Copy link
Contributor

@sonalmahajan15 sonalmahajan15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Small comment about typo correction.

assertion/function/preprocess/cfg.go Outdated Show resolved Hide resolved
@yuxincs yuxincs force-pushed the yuxincs/break-nonnil-return branch from 10acb30 to 152ec48 Compare October 4, 2024 21:11
Base automatically changed from yuxincs/break-nonnil-return to main October 4, 2024 21:19
@yuxincs yuxincs merged commit 3c8ea06 into main Oct 4, 2024
9 checks passed
@yuxincs yuxincs deleted the yuxincs/break-split-blocks branch October 4, 2024 23:09
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.

2 participants