Skip to content

Implement TestParse_Fields in statsd plugin - #2227

Open
gargritik121-a11y wants to merge 2 commits into
mainfrom
ritikgrg/implement-test-parse-fields
Open

Implement TestParse_Fields in statsd plugin#2227
gargritik121-a11y wants to merge 2 commits into
mainfrom
ritikgrg/implement-test-parse-fields

Conversation

@gargritik121-a11y

Copy link
Copy Markdown
Collaborator

TestParse_Fields was a stub (if false { t.Errorf(TODO) }) that never ran. This implements it with 3 table-driven subtests covering the field return value of parseName():

  1. No template: field defaults to value
  2. Simple measurement.field template: field extracted from bucket
  3. Multi-segment measurement.measurement.field template: field parsed correctly

All 3 subtests pass locally.

The test was a stub (if false { t.Errorf("TODO") }) that never ran.
Implement it with 3 subtests covering:
- No template: field defaults to "value"
- Simple measurement.field template: field extracted from bucket
- Multi-segment measurement.measurement.field template: field parsed correctly
@gargritik121-a11y
gargritik121-a11y requested a review from a team as a code owner July 31, 2026 15:42
@gargritik121-a11y gargritik121-a11y added the ready for testing Indicates this PR is ready for integration tests to run label Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for testing Indicates this PR is ready for integration tests to run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants