Skip to content

refactor: use version functions from common - #4065

Merged
coryan merged 2 commits into
googleapis:masterfrom
coryan:simpler-version-functions-for-new-libraries
May 8, 2020
Merged

refactor: use version functions from common#4065
coryan merged 2 commits into
googleapis:masterfrom
coryan:simpler-version-functions-for-new-libraries

Conversation

@coryan

@coryan coryan commented May 8, 2020

Copy link
Copy Markdown
Contributor

For new libraries (where we have no backward compatibility constraints)
we use the google::cloud::version*() functions (via using
declarations). I think having these functions in the right namespace is
useful, but if somebody feels strongly we can just remove them
altogether.

This fixes #3712


This change is Reviewable

For new libraries (where we have no backward compatibility constraints)
we use the `google::cloud::version*()` functions (via using
declarations). I think having these functions in the right namespace is
useful, but if somebody feels strongly we can just remove them
altogether.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 8, 2020
@codecov

codecov Bot commented May 8, 2020

Copy link
Copy Markdown

Codecov Report

Merging #4065 into master will decrease coverage by 0.03%.
The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4065      +/-   ##
==========================================
- Coverage   93.60%   93.56%   -0.04%     
==========================================
  Files         836      832       -4     
  Lines       64803    64787      -16     
==========================================
- Hits        60658    60618      -40     
- Misses       4145     4169      +24     
Impacted Files Coverage Δ
google/cloud/bigquery/connection_options.cc 0.00% <0.00%> (ø)
...le/cloud/pubsub/internal/user_agent_prefix_test.cc 100.00% <ø> (ø)
...ud/pubsub/integration_tests/pubsub_install_test.cc 55.55% <100.00%> (ø)
google/cloud/pubsub/internal/user_agent_prefix.cc 100.00% <100.00%> (ø)
google/cloud/storage/internal/complex_option.h 44.44% <0.00%> (-55.56%) ⬇️
google/cloud/storage/well_known_headers.h 73.07% <0.00%> (-18.23%) ⬇️
google/cloud/storage/upload_options.h 83.33% <0.00%> (-16.67%) ⬇️
google/cloud/bigtable/internal/common_client.h 89.47% <0.00%> (-10.53%) ⬇️
...storage/benchmarks/storage_throughput_benchmark.cc 82.44% <0.00%> (-6.85%) ⬇️
google/cloud/storage/internal/generic_request.h 90.00% <0.00%> (-3.55%) ⬇️
... and 29 more

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 3a0d866...f4d3eda. Read the comment docs.

@coryan
coryan marked this pull request as ready for review May 8, 2020 19:55
@coryan
coryan requested a review from a team May 8, 2020 19:55
Comment thread google/cloud/pubsub/version.h Outdated
@coryan
coryan merged commit bd3bf45 into googleapis:master May 8, 2020
@coryan
coryan deleted the simpler-version-functions-for-new-libraries branch May 8, 2020 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor the different [Vv]ersion{Major,Minor,Patch,}() functions

3 participants