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

refactor(generator): split DescriptorPoolFixture #10676

Merged

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Jan 27, 2023

Part of the work for #7664


This change is Reviewable

*
* TEST_F(MyTest, Name) {
* ASSERT_TRUE(AddProtoFile("foo.proto", contents));
* }
Copy link
Member

Choose a reason for hiding this comment

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

nit: @endcode ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, fixed.

/**
* Implements a fixture for test using a `google::protobuf::DescriptorPool`.
*
* Some test need a properly initialized descriptor pool, with:
Copy link
Member

Choose a reason for hiding this comment

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

s/test/tests/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

*
* Some test need a properly initialized descriptor pool, with:
* - the basic protobuf types and options already available
* - connected to error collectors so the test fails with meaningful errors
Copy link
Member

Choose a reason for hiding this comment

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

s/connected to//

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

namespace generator_testing {

/**
* Implements a fixture for test using a `google::protobuf::DescriptorPool`.
Copy link
Member

Choose a reason for hiding this comment

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

optional: s/test using/testing with/ ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@coryan coryan marked this pull request as ready for review January 27, 2023 19:50
@coryan coryan requested a review from a team as a code owner January 27, 2023 19:50
@coryan coryan enabled auto-merge (squash) January 27, 2023 19:50
@codecov
Copy link

codecov bot commented Jan 27, 2023

Codecov Report

Base: 93.71% // Head: 93.70% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (f060513) compared to base (03b3df7).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10676      +/-   ##
==========================================
- Coverage   93.71%   93.70%   -0.01%     
==========================================
  Files        1692     1695       +3     
  Lines      152774   152786      +12     
==========================================
+ Hits       143170   143174       +4     
- Misses       9604     9612       +8     
Impacted Files Coverage Δ
generator/internal/resolve_comment_references.cc 97.36% <100.00%> (ø)
...erator/internal/resolve_comment_references_test.cc 100.00% <100.00%> (ø)
generator/testing/descriptor_pool_fixture.cc 100.00% <100.00%> (ø)
generator/testing/descriptor_pool_fixture.h 100.00% <100.00%> (ø)
generator/testing/fake_source_tree.h 100.00% <100.00%> (ø)
...e/cloud/pubsublite/internal/alarm_registry_impl.cc 97.05% <0.00%> (-2.95%) ⬇️
...le/cloud/storage/internal/curl_download_request.cc 88.29% <0.00%> (-1.01%) ⬇️
google/cloud/bigtable/async_read_stream_test.cc 97.32% <0.00%> (-0.67%) ⬇️
...ud/spanner/integration_tests/client_stress_test.cc 84.21% <0.00%> (-0.66%) ⬇️
google/cloud/storage/internal/curl_handle.cc 77.90% <0.00%> (-0.56%) ⬇️
... and 5 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@coryan coryan merged commit cc9e422 into googleapis:main Jan 27, 2023
@coryan coryan deleted the refactor-generator-common-descriptor-fixture branch January 27, 2023 20:38
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