package
2.55.1+incompatible
Repository: https://github.com/prometheus/prometheus.git
Documentation: pkg.go.dev

# Functions

DirHash returns a hash of all files attributes and their content within a directory.
NewCallbackCloser returns a Closer that calls the provided function upon closing.
NewLogger returns a gokit compatible Logger which calls t.Log.
NewRoundTripCheckRequest creates a new instance of a type that implements http.RoundTripper, which before returning theResponse and theError, executes checkRequest against a http.Request.
NewTemporaryDirectory creates a new temporary directory for transient POSIX activities.
RandomUnprivilegedPort returns valid unprivileged random port number which can be used for testing.
RequireEqual is a replacement for require.Equal using go-cmp adapted for Prometheus data structures, instead of DeepEqual.
RequireEqualWithOptions works like RequireEqual but allows extra cmp.Options.
TolerantVerifyLeak verifies go leaks but excludes the go routines that are launched as side effects of some of our dependencies.

# Constants

NilCloser is a no-op Closer.

# Structs

A MockContext provides a simple stub implementation of a Context.
MockContextErrAfter is a MockContext that will return an error after a certain number of calls to Err().

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author