Skip to content

Add unit tests for histogram proto conversions#7354

Open
archy-rock3t-cloud wants to merge 1 commit intocortexproject:masterfrom
sophotechlabs:test/histogram-proto-conversions
Open

Add unit tests for histogram proto conversions#7354
archy-rock3t-cloud wants to merge 1 commit intocortexproject:masterfrom
sophotechlabs:test/histogram-proto-conversions

Conversation

@archy-rock3t-cloud
Copy link
Contributor

What this PR does:

Adds unit tests for the histogram protobuf conversion functions in pkg/cortexpb/histograms.go. Tests cover round-trip conversions for both integer and float histograms, panic behavior when calling conversion functions with the wrong histogram type, HistogramPromProtoToHistogramProto for both int and float variants, and span conversion helpers including nil input handling.

Which issue(s) this PR fixes:
N/A

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Artem Muterko <artem@sopho.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant