Skip to content

stats: add tag utility test. the tag joiner was previously covered by other tests, but lacked its own unit test#44074

Merged
wbpcode merged 3 commits intoenvoyproxy:mainfrom
jmarantz:tag-utility-test
Mar 25, 2026
Merged

stats: add tag utility test. the tag joiner was previously covered by other tests, but lacked its own unit test#44074
wbpcode merged 3 commits intoenvoyproxy:mainfrom
jmarantz:tag-utility-test

Conversation

@jmarantz
Copy link
Contributor

@jmarantz jmarantz commented Mar 22, 2026

Commit Message: adds a targeted unit tests, serving as documentation for how the stats tag name joiner works.
Additional Description:
Risk Level: very low; just adds a unit test.
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:

…tests, but lacked its own unit test

Signed-off-by: Joshua Marantz <jmarantz@google.com>
@jmarantz
Copy link
Contributor Author

@TAOXUY fyi

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a focused unit test for Envoy::Stats::TagUtility::TagStatNameJoiner, documenting the expected string output for a stat name with appended tag name/value pairs.

Changes:

  • Introduces tag_utility_test.cc with basic joiner expectations for “symbolic” and “dynamic” cases.
  • Registers the new unit test target in test/common/stats/BUILD.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
test/common/stats/tag_utility_test.cc Adds new unit tests that assert TagStatNameJoiner output for names with tag suffixes.
test/common/stats/BUILD Adds a new envoy_cc_test target to build/run the new unit test.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
Copy link
Member

@wbpcode wbpcode left a comment

Choose a reason for hiding this comment

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

Hello, @jmarantz. And Thanks @jmarantz .

@wbpcode wbpcode merged commit 555638f into envoyproxy:main Mar 25, 2026
29 checks passed
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