-
Notifications
You must be signed in to change notification settings - Fork 273
check for java bytecode index in the existing coverage #761
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
check for java bytecode index in the existing coverage #761
Conversation
src/goto-instrument/cover.cpp
Outdated
break; | ||
if(!source_location.get_java_bytecode_index().compare( | ||
it->get_java_bytecode_index()) && | ||
!source_location.get_file().compare(it->get_file()) && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_java_bytecode_index
should only be compared when using a Java analysis
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now we check whether get_java_bytecode_index is empty.
77a5646
to
00cb2b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please squash commits after the changes
src/goto-instrument/cover.cpp
Outdated
if(!given_location.get_file().compare(known_location->get_file()) && | ||
!given_location.get_function().compare(known_location->get_function()) && | ||
!given_location.get_line().compare(known_location->get_line())) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as compare returns an int
, could you test on 0
here?
src/goto-instrument/cover.cpp
Outdated
if(source_location.get_java_bytecode_index().empty()) | ||
break; | ||
else if(!source_location.get_java_bytecode_index().compare( | ||
it->get_java_bytecode_index())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above
there is also compile failures on travis, please fix those, too |
check whether the java bytecode index matches for the existing coverage goals
aed785c
to
2d7b34a
Compare
Due to several merge conflicts, I have created another PR to handle this issue: #772 |
check whether the java bytecode index matches for the existing coverage goals/