Skip to content

[CODE HEALTH] Move context propagation test classes into anonymous namespace - #4200

Merged
marcalff merged 5 commits into
open-telemetry:mainfrom
mateenali66:fix/4196-internal-linkage-context-propagation
Jul 2, 2026
Merged

marcalff merged 5 commits into
open-telemetry:mainfrom
mateenali66:fix/4196-internal-linkage-context-propagation

Conversation

@mateenali66

Copy link
Copy Markdown
Member

Moves the TextMapCarrierTest, CompositePropagatorTest and EnvironmentCarrierTest classes in the context propagation tests into an anonymous namespace, resolving their misc-use-internal-linkage clang-tidy warnings. Test-only, no behavior change.

Lowered the clang-tidy warning_limit by 3 for both ABI presets accordingly.

Part of #4196.

…mespace

Resolves the misc-use-internal-linkage clang-tidy warnings for the
TextMapCarrierTest, CompositePropagatorTest and EnvironmentCarrierTest
classes in the context propagation tests by giving them internal linkage.

Part of open-telemetry#4196.

Signed-off-by: Mateen Anjum <mateenali66@gmail.com>
@mateenali66
mateenali66 requested a review from a team as a code owner June 30, 2026 19:38
Signed-off-by: Mateen Anjum <mateenali66@gmail.com>
@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.88%. Comparing base (505c6dd) to head (7ff794f).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4200      +/-   ##
==========================================
- Coverage   82.90%   82.88%   -0.01%     
==========================================
  Files         405      405              
  Lines       17289    17289              
==========================================
- Hits        14331    14329       -2     
- Misses       2958     2960       +2     

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dbarker dbarker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! Feel free to group these into larger PRs if working on the same clang-tidy warning category issue. This can help the reviews and merges proceed smoothly due to conflicts on the limits and changelog.

@marcalff marcalff left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@marcalff
marcalff merged commit 7ffb5ec into open-telemetry:main Jul 2, 2026
72 checks passed
proost pushed a commit to proost/opentelemetry-cpp that referenced this pull request Jul 18, 2026
ayush-that pushed a commit to ayush-that/opentelemetry-cpp that referenced this pull request Jul 21, 2026
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