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

#3: added test and documentation for resultSets matcher #6

Merged
merged 4 commits into from
May 25, 2020

Conversation

AnastasiiaSergienko
Copy link
Contributor

Closes #3

doc/user_guide/user_guide.md Outdated Show resolved Hide resolved
Comment on lines 72 to 76
if (!bothRowsExist(actualResultSet, expectedNext, actualNext))
return false;
}
if (expectedNext && !doesRowMatch(actualResultSet, expectedColumnCount)) {
this.errorMessage.append(", row ").append(rowCounter).append(")\n");
return false;
}
Copy link
Collaborator

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().

Copy link
Contributor Author

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?

src/main/java/com/exasol/matcher/ResultSetMatcher.java Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented May 25, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 7 Code Smells

87.7% 87.7% Coverage
0.0% 0.0% Duplication

@AnastasiiaSergienko AnastasiiaSergienko merged commit 88383b9 into master May 25, 2020
@AnastasiiaSergienko AnastasiiaSergienko deleted the feature/3_add_tests_and_documentation branch May 25, 2020 07:46
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.

Add unit tests and enable sonar
2 participants