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

test(proto): generate tests for AppendRequest and ReplicateRequest #807

Merged
merged 1 commit into from
Jun 15, 2024

Conversation

ijsong
Copy link
Member

@ijsong ijsong commented Jun 8, 2024

What this PR does

This PR adds generated tests for
github.com/kakao/varlog/proto/snpb.AppendRequest and
github.com/kakao/varlog/proto/snpb.ReplicateRequest. These tests are generated
using the gogoproto testgen tag.

Resolving issue #795 may require changes to the unmarshaling code generated by
gogoproto. Adding these tests will provide confidence when making those changes.

Copy link

codecov bot commented Jun 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (rpc_metrics@d52ff1d). Learn more about missing BASE report.

Additional details and impacted files
@@              Coverage Diff               @@
##             rpc_metrics     #807   +/-   ##
==============================================
  Coverage               ?   68.40%           
==============================================
  Files                  ?      182           
  Lines                  ?    17899           
  Branches               ?        0           
==============================================
  Hits                   ?    12244           
  Misses                 ?     4872           
  Partials               ?      783           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This PR adds generated tests for
`github.com/kakao/varlog/proto/snpb.AppendRequest` and
`github.com/kakao/varlog/proto/snpb.ReplicateRequest`. These tests are generated
using the [gogoproto testgen tag](https://pkg.go.dev/github.com/gogo/protobuf/plugin/testgen).

Resolving issue #795 may require changes to the unmarshaling code generated by
gogoproto. Adding these tests will provide confidence when making those changes.
Base automatically changed from rpc_metrics to main June 15, 2024 06:54
@ijsong ijsong merged commit 6a93655 into main Jun 15, 2024
10 checks passed
@ijsong ijsong deleted the proto_tests branch June 15, 2024 06:54
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.

2 participants