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

fix type guard stmt bug and update tests. #438

Merged
merged 5 commits into from
Jul 15, 2024
Merged

Conversation

rupertford
Copy link
Collaborator

There was a bug in the type_guard_stmt match method. Updated the code and associated tests. The restructuring of the code actually removes the offending line of code.

Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f43a18f) 91.96% compared to head (7ea0f86) 92.02%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #438      +/-   ##
==========================================
+ Coverage   91.96%   92.02%   +0.05%     
==========================================
  Files          85       85              
  Lines       13644    13643       -1     
==========================================
+ Hits        12548    12555       +7     
+ Misses       1096     1088       -8     

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

Copy link
Member

@arporter arporter left a comment

Choose a reason for hiding this comment

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

Good job. Just a couple of minor things to tidy up and then this can go on.
No need to update docs as this is a bug fix.

src/fparser/two/Fortran2003.py Outdated Show resolved Hide resolved
src/fparser/two/Fortran2003.py Outdated Show resolved Hide resolved
src/fparser/two/Fortran2003.py Outdated Show resolved Hide resolved
@arporter arporter added reviewed with actions PR has been reviewed and is back with developer and removed under review labels Jan 3, 2024
@arporter arporter added in progress and removed reviewed with actions PR has been reviewed and is back with developer labels Apr 11, 2024
@arporter
Copy link
Member

I'll take this on - there's not much to do.

@codecov-commenter
Copy link

codecov-commenter commented Apr 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.13%. Comparing base (5f24ee2) to head (41a0aa4).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #438      +/-   ##
==========================================
+ Coverage   92.07%   92.13%   +0.05%     
==========================================
  Files          85       85              
  Lines       13825    13824       -1     
==========================================
+ Hits        12730    12737       +7     
+ Misses       1095     1087       -8     

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

@arporter
Copy link
Member

Just finishes off a small bugfix. Ready for review from either @hiker or @sergisiso.

Copy link
Collaborator

@sergisiso sergisiso left a comment

Choose a reason for hiding this comment

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

Thanks for finishing this PR @arporter. The associated issue has been fixed and the type guard tests have also improved, this is approved for merging.

@sergisiso sergisiso added ready for merge PR is waiting on final CI checks before being merged. and removed under review labels Jul 15, 2024
@sergisiso sergisiso merged commit 2d8cef7 into master Jul 15, 2024
4 checks passed
@sergisiso sergisiso deleted the 437_type_guard_stmt_bug branch July 15, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ready for merge PR is waiting on final CI checks before being merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants