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

Extend tests to validate metric name and help field #526

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

guidoiaquinti
Copy link
Contributor

@guidoiaquinti guidoiaquinti commented Jan 28, 2021

Description

Extend collector/collector_test.go by adding validations to the fqName and help fields.

Why

While working on a PR to extend collector/global_variables.go I've introduced a breaking change not spotted by the current tests.

Note: tests are going to be more verbose but I consider this 👍 as a change in a metric name should be considered an incompatible API change.

Tests

Tests are passing.

@guidoiaquinti
Copy link
Contributor Author

@SuperQ please let me know if you are interested in this and I'll rebase. Otherwise I'll simply close it.

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.

1 participant