Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for int64 sample rate values #213

Merged
merged 2 commits into from
Feb 24, 2021

Conversation

MikeGoldsmith
Copy link
Contributor

Resolves #211.

Adds testing for parsing int64 sample rate values. Test cases include parsing a value that can be parsed into an int32 and a value greater than int32 max where the int32 max value is used instead.

Additionally, replace the custom max int32 value with the math package const math.MaxInt32.

@MikeGoldsmith MikeGoldsmith requested a review from a team February 23, 2021 19:19
Copy link
Contributor

@vreynolds vreynolds left a comment

Choose a reason for hiding this comment

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

👍

@MikeGoldsmith MikeGoldsmith merged commit 2af00d0 into main Feb 24, 2021
@MikeGoldsmith MikeGoldsmith deleted the mike/int64-sample-rate-tests branch February 24, 2021 16:54
ghost pushed a commit to opsramp/tracing-proxy that referenced this pull request Jul 5, 2024
Resolves honeycombio#211.

Adds testing for parsing int64 sample rate values. Test cases include parsing a value that can be parsed into an int32 and a value greater than int32 max where the int32 max value is used instead.

Additionally, replace the custom max int32 value with the math package const math.MaxInt32.
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.

Add tests for int64 sample rates
2 participants