test: BigDecmialByteStringConverter E2E Test#979
test: BigDecmialByteStringConverter E2E Test#979stephaniewang526 merged 14 commits intogoogleapis:masterfrom
Conversation
to support these changes. Fix all affected tests
Codecov Report
@@ Coverage Diff @@
## master #979 +/- ##
============================================
+ Coverage 80.99% 81.03% +0.04%
- Complexity 1043 1046 +3
============================================
Files 78 78
Lines 5657 5669 +12
Branches 433 436 +3
============================================
+ Hits 4582 4594 +12
Misses 889 889
Partials 186 186
Continue to review full report at Codecov.
|
...querystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/JsonToProtoMessage.java
Show resolved
Hide resolved
...querystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/JsonToProtoMessage.java
Show resolved
Hide resolved
.../com/google/cloud/bigquery/storage/v1beta2/it/ITBigQueryBigDecimalByteStringEncoderTest.java
Outdated
Show resolved
Hide resolved
...querystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/JsonToProtoMessage.java
Show resolved
Hide resolved
… Resolving other comments
...querystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/JsonToProtoMessage.java
Show resolved
Hide resolved
...querystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/JsonToProtoMessage.java
Show resolved
Hide resolved
...querystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/JsonToProtoMessage.java
Show resolved
Hide resolved
|
@yirutang PTAL |
yirutang
left a comment
There was a problem hiding this comment.
Looks good, some comments here.
...test/java/com/google/cloud/bigquery/storage/v1alpha2/BQTableSchemaToProtoDescriptorTest.java
Show resolved
Hide resolved
...querystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...querystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
|
@yirutang PTAL |
| .put(RepeatedObject.getDescriptor(), "object") | ||
| .build(); | ||
|
|
||
| private static ImmutableMap<Descriptor, Message[]> BytesRepeatedCorrectProto = |
There was a problem hiding this comment.
Could you add this case directly to AllTypesToDebugMessageTest?
There was a problem hiding this comment.
I was messing with that for a while but I think your comment below actually kind of solves the issue I was having with it. I just added in the positive test to the AllRepeatedTypesToDebugmessageTest and it works now. I will see if the negative test can also be added in now.
...ystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/JsonToProtoMessageTest.java
Outdated
Show resolved
Hide resolved
| "Error: root.test_repeated[0] could not be converted to byte[].", e.getMessage()); | ||
| } | ||
| } | ||
| if (entry.getKey() == RepeatedBytes.getDescriptor()) { |
There was a problem hiding this comment.
does this test have 2 cases? I only see one entry in the ByteRepeatedTypesToDebugMessageTest. It is quite hard to read. Could you just add the positive case to the AllTypesToDebugMessageTest and then focus on the negative test here?
There was a problem hiding this comment.
I realized that there was a better way to add in both of the positive and negative tests to the existing test. It should be covered now and much easier to understand what changes I made
🤖 I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #<issue_number_goes_here> ☕️