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

FieldRef validator changes #791

Merged
merged 11 commits into from
Jan 5, 2024
Merged

FieldRef validator changes #791

merged 11 commits into from
Jan 5, 2024

Conversation

akshitad11
Copy link
Collaborator

FieldRef validator changes and test cases

@akshitad11 akshitad11 requested a review from kadirayk January 2, 2024 15:39
Copy link

codecov bot commented Jan 2, 2024

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (bc6f0bc) 63.38% compared to head (4e95256) 63.86%.
Report is 3 commits behind head on develop.

Files Patch % Lines
...java/sootup/core/validation/FieldRefValidator.java 72.00% 4 Missing and 3 partials ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop     #791      +/-   ##
=============================================
+ Coverage      63.38%   63.86%   +0.47%     
- Complexity      3376     3405      +29     
=============================================
  Files            314      314              
  Lines          15074    15097      +23     
  Branches        2557     2566       +9     
=============================================
+ Hits            9555     9641      +86     
+ Misses          4626     4549      -77     
- Partials         893      907      +14     

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

swissiety
swissiety previously approved these changes Jan 4, 2024
Copy link
Collaborator

@swissiety swissiety left a comment

Choose a reason for hiding this comment

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

👍

Comment on lines +71 to +72
validationException.add(
new ValidationException(fr, "Resolved field is null: " + fr.toString()));
Copy link
Collaborator

Choose a reason for hiding this comment

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

this can occur when not a complete program is given in the input - lets just ignore those cases.

Comment on lines +56 to +57
if (!fieldOpt.isPresent()) {
validationException.add(new ValidationException(v, "Resolved field is empty: "));
Copy link
Collaborator

Choose a reason for hiding this comment

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

this can occur when not a complete program is given in the input - lets just ignore those cases.

@swissiety swissiety self-requested a review January 4, 2024 16:06
@swissiety swissiety dismissed their stale review January 4, 2024 16:08

because I can. There are changes needed.

@kadirayk kadirayk merged commit 71d5508 into develop Jan 5, 2024
8 checks passed
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.

3 participants