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

adding unit tests for labelsets, metrics, and fingerprints types #167

Merged
merged 1 commit into from
Jan 24, 2019

Conversation

tariq1890
Copy link
Contributor

Signed-off-by: tariqibrahim tariq181290@gmail.com

model/fingerprinting_test.go Outdated Show resolved Hide resolved
model/fingerprinting_test.go Outdated Show resolved Hide resolved
}
}`
var c testConfig
err := json.Unmarshal([]byte(labelSetJSON), &c)
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, it this code dead yet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not sure I follow :).

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm wondering if we still have code that uses this, and if not if we can delete it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll update the year in this file's license header

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you referring to the JSON Unmarshal specifically ? LabelSet is being used widely.

Signed-off-by: tariqibrahim <tariq181290@gmail.com>
@brian-brazil brian-brazil merged commit 155b49a into prometheus:master Jan 24, 2019
@brian-brazil
Copy link
Contributor

Thanks!

alanprot pushed a commit to alanprot/common that referenced this pull request Mar 15, 2023
Allow user to specify HTTP and gRPC bind addresses (not just ports.) (Rebase of prometheus#153)
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.

2 participants