Skip to content

FieldRef validator changes#791

Merged
kadirayk merged 11 commits intodevelopfrom
FieldRefValidator_changes
Jan 5, 2024
Merged

FieldRef validator changes#791
kadirayk merged 11 commits intodevelopfrom
FieldRefValidator_changes

Conversation

@akshitad11
Copy link
Copy Markdown
Contributor

FieldRef validator changes and test cases

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

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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