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

Fix gRPC default error value #250

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Fix gRPC default error value #250

merged 1 commit into from
Dec 3, 2024

Conversation

goccy
Copy link
Member

@goccy goccy commented Dec 2, 2024

Breaking Changes

Currently, if neither code nor message is specified in error {}, default values are used. However, this could lead to unintended results, so if they are not specified, the original error values will be used instead.

Copy link

github-actions bot commented Dec 2, 2024

Code Metrics Report

main (c188207) #250 (96de182) +/-
Coverage 66.4% 66.4% 0.0%
Code to Test Ratio 1:0.4 1:0.4 +0.0
Test Execution Time 7m55s 8m6s +11s
Details
  |                     | main (c188207) | #250 (96de182) | +/-  |
  |---------------------|----------------|----------------|------|
  | Coverage            |          66.4% |          66.4% | 0.0% |
  |   Files             |             76 |             76 |    0 |
  |   Lines             |          12632 |          12632 |    0 |
  |   Covered           |           8384 |           8384 |    0 |
+ | Code to Test Ratio  |          1:0.4 |          1:0.4 | +0.0 |
  |   Code              |          39390 |          39413 |  +23 |
+ |   Test              |          15369 |          15413 |  +44 |
- | Test Execution Time |          7m55s |           8m6s | +11s |

Code coverage of files in pull request scope (80.8% → 80.8%)

Files Coverage +/-
grpc/federation/alias.go 0.0% 0.0%
grpc/federation/generator/decode.go 73.3% 0.0%
internal/testutil/builder.go 84.5% 0.0%
resolver/resolver.go 83.4% 0.0%
resolver/types.go 86.7% 0.0%

Reported by octocov

Comment on lines +23 to +25
_ = defaultMsg
_ = defaultCode
_ = defaultDetails
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this for?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To prevent build errors for unused variables

@goccy goccy requested a review from utahta December 3, 2024 02:33
@goccy goccy merged commit 1e33222 into main Dec 3, 2024
4 checks passed
@goccy goccy deleted the fix-default-grpc-error-value branch December 3, 2024 06:26
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.

3 participants