-
Notifications
You must be signed in to change notification settings - Fork 2
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
#3: added test and documentation for resultSets matcher #6
#3: added test and documentation for resultSets matcher #6
Conversation
if (!bothRowsExist(actualResultSet, expectedNext, actualNext)) | ||
return false; | ||
} | ||
if (expectedNext && !doesRowMatch(actualResultSet, expectedColumnCount)) { | ||
this.errorMessage.append(", row ").append(rowCounter).append(")\n"); | ||
return false; | ||
} |
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.
This code makes it very hard to read whether the actual row count will be calculated correctly. The code for that hides in a completely different place: bothRowsExist()
calls getRowCounter()
.
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.
What can I do to improve it?
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
Closes #3