Skip to content

spanner-jdbc: Add tests for AbstractJdbcResultSet - #6156

Merged
olavloite merged 3 commits into
googleapis:masterfrom
olavloite:spanner-jdbc-add-tests-for-abstract-rs
Aug 26, 2019
Merged

spanner-jdbc: Add tests for AbstractJdbcResultSet#6156
olavloite merged 3 commits into
googleapis:masterfrom
olavloite:spanner-jdbc-add-tests-for-abstract-rs

Conversation

@olavloite

Copy link
Copy Markdown
Contributor

Adds tests for methods in AbstractJdbcResultSet. Also removes unused code from JdbcResultSetTest class.
This PR also adds functionality for keeping track of the fetchSize hint of a ResultSet. Although the hint is currently not used, it is better to keep track of it to keep the get/set methods consistent. According to the JDBC spec, these methods must be implemented, but it is not required that the
driver actually uses the hint.

Although the hint is currently not used, it is better to keep track of
it to keep the get/set methods consistent. According to the JDBC spec,
these methods must be implemented, but it is not required that the
driver actually uses the hint.
@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 25, 2019
@codecov

codecovBot commented Aug 25, 2019

Copy link
Copy Markdown

Codecov Report

Merging #6156 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@ Coverage Diff @@## master #6156 +/- ##
============================================
+ Coverage 47.38% 47.42% +0.04% - Complexity 27182 27296 +114 
============================================
Files 2524 2524 Lines 274612 274613 +1 Branches 31383 31383 ============================================
+ Hits 130125 130239 +114 + Misses 134874 134761 -113 
Partials 9613 9613
Impacted FilesCoverage ΔComplexity Δ
...ogle/cloud/spanner/jdbc/AbstractJdbcResultSet.java100% <100%> (+95.79%)117 <2> (+114)⬆️
...ain/java/com/google/cloud/pubsub/v1/Publisher.java89.11% <0%> (-0.35%)40% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7c2f465...092c2df. Read the comment docs.

@olavloite
olavloite merged commit 6afa233 into googleapis:masterAug 26, 2019
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
* keep track of fetch size hint
Although the hint is currently not used, it is better to keep track of
it to keep the get/set methods consistent. According to the JDBC spec,
these methods must be implemented, but it is not required that the
driver actually uses the hint.
* remove unused code
* add test cases for methods in AbstractResultSet
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@olavloite@kolea2@googlebot