Skip to content

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

Open
mateenali66 wants to merge 2 commits into
open-telemetry:mainfrom
mateenali66:fix/4196-internal-linkage-context-propagation
Open

[CODE HEALTH] Move context propagation test classes into anonymous namespace#4200
mateenali66 wants to merge 2 commits into
open-telemetry:mainfrom
mateenali66:fix/4196-internal-linkage-context-propagation

Conversation

@mateenali66

Copy link
Copy Markdown
Contributor

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.89%. Comparing base (a56f0e2) to head (23670c8).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4200   +/-   ##
=======================================
  Coverage   82.89%   82.89%           
=======================================
  Files         405      405           
  Lines       17292    17292           
=======================================
  Hits        14332    14332           
  Misses       2960     2960           
🚀 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.

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